JavaScript API - WebChat
Configuration
Learn how to configure the WebChat plugin. Go to Configuration
WebChat
Manually control the WebChat widget.
An implementation example can be found here.
Open WebChat window
You can manually open the WebChat window (same behavior as clicking on the chat bubble).
CV.webchat.open();
Close WebChat window
You can manually close the WebChat window (same behavior as clicking on the chat bubble).
CV.webchat.close();
Show WebChat
If the WebChat is hidden because of a rule (i.e. no agent is online), you can manually show the chat..
CV.webchat.show();
Trigger flow
Manually trigger a flow for the WebChat. You can configure a flow at Automation -> Flows. The flowId
can be found in the url https://app.chatvisor.com/#/entities/flows/show/<FLOWID>
CV.webchat.triggerFlow("<flowId>");
Additional methods
See API