Hi there,
I am struggling to understand how I can create a workflow with the API to reply to an incoming email.
I have a websocket connection open to my queue, where I get notifications on new emails.
then I:
- get the conversation using: get_conversations_email
- use post_conversation_participant_replace to set the acd participant to my user with a transfer request like {user_id = user.id, transfer_type = "Attended"}
- use patch_conversations_email_participant with request {state = "CONNECTED" } to connect the participant to the conversation
and then finally i use post_conversations_email_messages to send my reply, but this is where it fails
with the error message "User is not an active communication on the conversation."
What am I missing?
thanks!