curl --request POST \
--url https://{subdomain}.mihu.ai/api/v1/agents/from-website \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"source_url": "https://mihu.ai",
"language": "en"
}
'Create an agent from website documentation
Researches a public website or documentation URL with a web-grounded search, decides the best agent identity and behavior from the discovered business context, creates the agent, and stores the analysis as agent notes. The URL is not fetched directly \u2014 see the note on source_url.
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.
curl --request POST \
--url https://{subdomain}.mihu.ai/api/v1/agents/from-website \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"source_url": "https://mihu.ai",
"language": "en"
}
'Authorizations
Body
Website or documentation URL the analysis is about. NOTE: the URL is not fetched. It steers a web search over already-indexed pages, so a deep link is a hint rather than a page that will be read, a URL that 404s still returns an analysis instead of an error, and a site with a thin search footprint returns generic content or a same-named different company. Check the _citations in the response against this host before trusting the result. Required unless analysis_prompt is provided.
"https://example.com/docs"
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."
Analysis 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"
Response
Agent created from website successfully. Returns the created agent and the analysis it was built from.