Bot workflows
Publish profiles and respond to customers with a reviewable automation flow.
From a link to a listing.
From a message to a reply.
PROFILE PUBLISHINGImport → review → publish
- POST
/agent-profiles/scrape with the supplied LinkedIn URL. - Review the returned public details and choose the price, browser and provider.
- POST
/agent-profiles with listImmediately:false to save an unlisted draft. - PATCH the saved profile with
status:available after review.
Scraping may incur provider costs. It does not guarantee a complete or accurate profile.
CUSTOMER CONVERSATIONSReceive → fetch context → reply
- Subscribe a webhook to the message-created event.
- Verify its signature and durably insert the event once by ID before returning 2xx.
- Fetch the conversation and history. Confirm the sender is the customer for that organization booking; other staff messages are also possible. Ignore your own bot’s messages.
- Prepare a reply for review. Send the approved reply with a stable idempotency key derived from that event.
curl -X POST "$BASE/chat/conversations/$CONVERSATION_ID/messages" \
-H "Authorization: Bearer $ALLPROFILES_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: reply-$EVENT_ID" \
--data '{"body":"Thanks. I am checking availability and will confirm."}'