Use Demo Webchat
To start using Demo Webchat, follow these steps:- In the navigation menu of the project, go to Deploy > Endpoints.
- On the Endpoints page, select an existing Webchat endpoint or create a new one by clicking + New endpoint.
- In the endpoint editor, click the preview bar on the right with the
icon. The live preview section opens. - In the live preview section, click
.
Manually define the user ID
By default, when you load the Webchat widget, you are assigned a randomuser id that is stored in local memory, ensuring that you have the same user id the next time you use the Webchat.
To test your Webchat as an end user, define the user id by adding ?user=<user-id> to the Demo Webchat URL. For example, in the https://webchat-trial.cognigy.ai/v2/7e466a9d76611d8decbd15f366f607345efc36805c4e7cff25789ec91ee66457?user=test URL,
the user id is set to test.
To create a new session for the existing user, use ?user=<old-user-id>&sessionId=<new-user-id>.
To locate the user id of past conversations, go to Manage > Contact Profiles.