Skip to content
Docs

Workflows

Values from your website

Pass values your website already knows, such as a signed-in person's account number, into the chat.

Your website can give the chat values it already knows, such as a signed-in person’s account number. Add extraVariables to the Webchat code on your page:

<script type="text/javascript">
  window.protoSettings = {
    id: 'your-app-id',
    extraVariables: {
      account_number: 'AC-10442',
      plan: 'gold'
    }
  };
</script>

Keep the rest of the code you copied from the Publish tab as it is. In a workflow, use {_extra.account_number} in text, or _extra.plan in an expression.

Stuck? Ask Advisor in the Proto dashboard, or contact us.

© Proto