Using Demo Webchat
To start using Demo Webchat, follow these steps:- In the left-side menu of the Project, go to Build > Endpoints.
- On the Endpoints page, select existing Webchat Endpoint or create a new one by clicking + New Endpoint.
- In the upper-right corner of the Endpoint editor, click Open Demo Webchat.
Manually Defining 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, navigate to Manage > Contact Profiles.