Open Messaging - Update fromAddress property on Customer participant

Hi,
We have implemented web messaging using the open messaging protocol. For a bot flow, we need to create an interaction immediately, before we know any details from the customer, such as email address. This is because there is no pre-chat survey - the bot will gather this detail in conversation.
As a result, we need to provide a "dummy" email address when calling the API to create the interaction. This obviously doesn't represent the customers real email address. How can we replace this dummy email against the interaction or participant with the customer's real email address once we have it?
Thanks,
Mick

To add specifics, it's the fromAddress parameter on the customer participant that we need to update.

hi @hynsey,
The issue you have here is that you are invoking the conversation to be generated from the 1st message earlier, and those address fields are immutable. One workaround you could use here is the channel.metadata.customAttribues field. So in the future open messaging inbound messages you can set and reset those values. These values are allowed to change and will be persisted to the conversation in the participants[].attributes object with the updated values you give from each inbound open message. Hope this helps

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