Create an agent from website documentation
Crawls and analyzes a public website or documentation URL, decides the best agent identity and behavior from the discovered business context, creates the agent, and stores the analysis as agent notes.
When to use this endpoint:
- Onboarding a new customer: turn their website into a ready-to-use agent in one call
- Creating a demo agent for a prospect from just their URL
- Rebuilding an agent after a company website or product change
Use /api/v1/agents/analyze-website first if you want to inspect the analysis before creating the agent. The created agent starts with default voice and text settings — customize them afterwards via the agent update endpoints.
Authorizations
Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"
Body
Website or documentation URL to crawl and analyze. Required unless analysis_prompt is provided. Prefer this over prompt-only research: it anchors the analysis to the right company.
"https://example.com/docs"
Optional output language (ISO 639-1, e.g. en, tr, fr, de). The analysis and generated agent texts are written in this language. Defaults to the workspace language.
"fr"
Optional extra analysis instruction. Use it to request pricing analysis, documentation summary, or market positioning on top of the standard website analysis. The result is returned inside additional_analysis. Can also be used alone (without source_url) for prompt-only research, but results are better when a URL anchors the analysis.
4000"Summarize the product documentation, pricing pages, and FAQ in detail."
Optional ISO 3166-1 alpha-2 country code (TR, US, DE, FR, GB...). Localizes the web search to that market. Use when the company mainly operates in one country.
"TR"
Optional state, province, or administrative region for finer localization. Use together with search_country.
"Istanbul"
Optional city for local-business analysis. Use together with search_country.
"Istanbul"
Optional latitude for precise location-based search. Use with search_longitude and search_country.
41.0082
Optional longitude for precise location-based search. Use with search_latitude and search_country.
28.9784
Optional ISO 639-1 language codes. Restricts which source languages are searched — e.g. ['tr'] to analyze only Turkish sources. Independent from the output language.
10Optional domain allow/deny list, maximum 20 entries. Plain domain includes it ('mihu.ai'), '-' prefix excludes it ('-wikipedia.org'). Use to keep the analysis pinned to the company's own sites.
20Analysis depth. When to use each value:
- fast-search (default): fastest and lowest cost. Small websites and quick agent setup. Typical response in seconds.
- pro-search: balanced speed and quality with better page coverage. Recommended for most production agent creation.
- deep-research: slow, deep crawl and research. Large or complex websites, or when analysis_prompt asks for extra research. Can take minutes.
- advanced-deep-research: slowest and most exhaustive. Use only when maximum coverage matters more than speed.
fast-search, pro-search, deep-research, advanced-deep-research "pro-search"
Optional override for the agent's name. If omitted, the system derives it from the company name.
"Support"
Optional override for the agent's role. If omitted, the system decides from the discovered business context.
"Customer support agent"
Optional override for the agent's objective. If omitted, the system builds it from the discovered services, audience, and automation opportunities.
"Answer questions and route customers"
Response
Agent created from website successfully. Returns the created agent and the analysis it was built from.