Hello,
I have 4 Messenger Configurations differents for the webmessaging. All have the same configuration except the target queue which is different for each configuration.
I looking a way to build the same Inbound message startegy in Architect (instead create 4 different strategies) with diffrent target queue. Is there a simple way in architect to retrieve the Messenger configuration in order to configure the target queue or something which can differentiate the configurations used for the message?
Hi, Other than different destination queues, what's the reason of using 4 different Messenger Configurations. i.e. do you have 4 different websites/web pages?
You can use the Database.set command to write Custom Attribute to the interaction. In your case it could be the Unique Name for each webpage source.
Then build a Data Action using GET /api/v2/conversations/{conversationId} to retrieve those attributes within Architect Flow and make Routing decision based on the Attribute values.
Build a Data Action using GET /api/v2/conversations/{conversationId} to retrieve the Deployment Name which can be found under participants[0].messages[0].toAddress.name OR participants[1].name in the response. Then call that data action in the Architect Flow and make Routing decision based on the values
In both cases, for the data action input, you can use the built in variable Message.ConversationID to supply the conversation id
@Jeremy_MONZO a more simple approach would be to pass your "queue" identifier (really, this can be any label) using Custom Attributes (Database.set), and then simply retrieve it via Get Participant Data action in Architect Flow. Any Custom Attribute will be mapped to Participant Data using the same name value.
I have finally used the Data Action using GET /api/v2/conversations/{conversationId} for retrieve the deployment key which can be found found in participants[0].messages[0].toAddress.addressNormalized