Create your first bot
Bots are created via POST /api/bots. On creation, MimicBot seeds a default source (your website), enables the always-on capabilities, and kicks off your first crawl automatically.
Before you start
- An agency API token. Generate one in the MimicBot dashboard under Settings → API tokens.
- The URL of the site you want the bot to learn from.
Steps
-
Create the bot with a minimal request:
curl -X POST https://api.mimicbot.app/api/bots \-H "Authorization: Bearer $MIMICBOT_TOKEN" \-H "Content-Type: application/json" \-d '{"name": "Acme Support Bot","clientUrl": "https://acme.example"}' -
Read the
201response — it contains the full bot record:{"bot": {"id": "...","publicId": "bot_a1b2c3d4e5","name": "Acme Support Bot","clientUrl": "https://acme.example","status": "draft","widgetConfig": { "assistantName": "Assistant", "primaryColor": "#2563EB" },"crawlConfig": { "schedule": "manual", "maxPages": 500, "respectRobotsTxt": true },"createdAt": "..."}} -
Copy the
publicId. You'll need it for the widget install in Install the widget. -
Note the
status: "draft"— it flips toindexingduring the first crawl and then toreadywhen done. The next page covers this.
What happens on bot creation
- A default source of kind
websiteis created pointing atclientUrl. - Always-on capabilities (like
contact_team) are attached to the bot. - A Temporal workflow (
botIndexingWorkflow) is enqueued to run the first crawl.