I am using the Agentless API to send outbound SMS messages. However, I would like to know if there is a way to pass custom attributes. I reviewed the dev page but it wasn't very clear.
Here is what I have so far: API URL:
/api/v2/conversations/messages/agentless
Hi Jamie,
You have the right developer page there, and as you already found there isn't any custom attribute support there. That agentless sms message request, is going outbound to the end customer via their sms carrier and handset. So really it's only going to support text and media (media is not supported through agentless api) over sms channel. Aside from using the textBody field to pass through some information to them, I'm not sure how else it would work. Are you instead looking to "tag" some custom attribute information to the Conversation in Genesys Cloud, but not actually send it to the end user here?
Yes. This will mainly be internal. I'm offering a text SMS within the in-queue and ideally, I'd like to pass the call conversation ID to connect the two. If that is possible.
@Jaime_Perez This scenario works for me, and it might help you in your use case too.
Make your Agentless API request, in the response there will be a conversationId field
Use the conversationId and GET it (GET /api/v2/conversations/{conversationId}) filter out the participants to the api participant for instance (the one who out-bounded the agentless message), and retrieve it's participantId.