Ability to add participant data for agentless SMS

Hello,

We are currently using this API

/api/v2/conversations/messages/agentless

to send the SMS from the IVR. The challenge we are having is, in the interactions (performance workspace) we have two separate conversation ID's: one for inbound call, the other for outbound SMS. Is there a way to add the conversation ID for inbound call in the participant data (or any equivalent) to the outbound SMS interaction? We just need to link the two conversations.

Is there a reason you're not using the useExistingActiveConversation flag to encompass the SMS in the existing conversation natively or are you intentionally keeping them distinct but want to link them?

If the latter, the return reply from /api/v2/conversations/messages/agentless includes the newly created conversationId, so you could just parse that an append it as an attribute to the initiating conversation. You could probably also use it to push the initiating conversation's id to the new conversation but it's generally easier to manipulate the conversation you're in.

Hey,

Thank you for the response. Can you please let me know where to set the useExistingActiveConversation flag

POST /api/v2/conversations/messages/agentless

It's a top level property;

{
  "fromAddress": "8885551212",
  "toAddress": "8775551515",
  "useExistingActiveConversation": true
}

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.