2

I am trying to integrate snap-in chat into our corporate website, and there are two use-cases that I am trying to support:

  • Enable pre-chat when visitor hasn't login/created-account with us
  • Disable pre-chat when they are already login

According to the documentation, there is a setting that does that:

embedded_svc.settings.initialInteractionState
// Enable pre-chat with PRECHAT, disable with WAITING

I have tried using either value (and also made sure that is being done before invoking init() function on embedded_svc). However, it doesn't change the behavior - it always rely on what is being configured at the deployment level.

Has anyone able to alter the prechat behavior with the above setting?

Last note: I am using version 22 of embedded_svc.

2
  • Did you find a solution? – Acuariano Nov 28 '18 at 12:57
  • 1
    nope, I filed a ticket with Salesforce at that time, and they said the documentation was incorrect - the feature wasn't available at all. – Hub Nov 30 '18 at 9:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.