Database.update on Auto start Web Messeger

Hello, I need your help.

I'm working on a Web Messenger implementation where we need the inbound message flow to auto-start, but we also need to be able to send certain information when it initiates using the 'Database.update' command. This is so that we can have that information in the inbound message flow and route the interaction correctly (We have two sub-flows that are routed based on the information sent at the beginning).

As I can see in the documentation, the 'Database.update' command only activates when the client sends a message, which doesn't work for us since the flow auto-starts (And we need the information to be already set).

Given this, is there a possibility to achieve this implementation with the javascript SDK?

Regards,
Miguel de Orue

You can use Database.set when Messenger has initialized on the page: upon auto-start, the custom attributes will be passed on the very first event (regardless of any inbound message), and can be retrieved as Participant Data in your Inbound Message Flow.

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