Activating actions
Actions discovered by the crawler start in review state. They are not offered to visitors until you activate them.
Before you start
- A bot that has completed its first crawl (
status: ready) - At least one discovered action in
reviewstate (check withGET /api/bots/{botId}/actions)
Steps
-
List pending actions:
curl "https://api.mimicbot.app/api/bots/{botId}/actions?status=review" \-H "Authorization: Bearer $MIMICBOT_TOKEN" -
Review the
targetandparamsSchemaof each action. Confirm theselector,fieldMap, andpageUrllook correct. -
Activate an action you trust:
curl -X PATCH https://api.mimicbot.app/api/bots/{botId}/actions/{actionId} \-H "Authorization: Bearer $MIMICBOT_TOKEN" \-H "Content-Type: application/json" \-d '{ "status": "active" }' -
Drop an action that's incorrect (e.g., the crawler picked up a footer form you don't want the bot proposing):
curl -X PATCH https://api.mimicbot.app/api/bots/{botId}/actions/{actionId} \-H "Authorization: Bearer $MIMICBOT_TOKEN" \-H "Content-Type: application/json" \-d '{ "status": "dropped" }'
What you just did
- Approved one or more discovered actions
- Removed bad-match actions from the review queue
- Started offering actions to visitors