Having the ability to trigger a reusable workflow via API would be really helpful for making workflow/bot conversations more dynamic. A specific use case I’m working on right now is serving CSAT in conversations where customers interact only with a bot (no team member assigned).
Unresponsive triggers only happen with human to human conversations. If a customer goes unresponsive while talking to the bot, the conversation is considered abandoned, not closed.
My thought was to use Zapier to trigger closed conversations and filter by convos NOT assigned to a team member, however I have no way of serving CSAT in that conversation via the API.
I played around with starting workflows using this non-documented endpoint:
curl --request POST \
--url https://app.intercom.io/ember/inbox/workflows/start \
--header 'Accept: application/json' \
--header 'Authorization: Bearer REDACTED \
--header 'Content-Type: application/json' \
--header 'X-Csrf-Token: REDACTED' \
--cookie _intercom_session=REDACTED \
--data '{
"app_id": "######",
"conversation_id": ######,
"workflow_instance_id": ######
}
'
The problem is that this seems to required a cookie which I’m not able to refresh dynamically. Any ideas on this?