we have a use case where we have orphan conversations on Twilio Flex. This means that some conversations have a single participant which is the contact but no agent associated to the conversation.
So when creating a new interaction to the contact we have the error that the addres/proxy_address combination already exists. Therefore the interaction is created on Flex but not messages are sent as the new conversation was never attached to the interaction.
What I need is to whenever we need to create a new interaction, check if the conversations exists and create the interaction with this conversation (resume a previous active “orphan” conversation) or create a new one if there is no address/proxy_address combination active.
Is it possible to pass an existing conversationSid to this endpoint?
I’m aware that I could invite an agent to the interaction. But I dont have the interactionSid at this point.
I’m using node SDK “client.flexApi.v1.interaction.create” to create the interaction.
I would expect the interaction api to accept an existing conversationSid in order to use that conversation instead of creating a new one.
Any help is appreciated.