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.