We have a standard URL for cases where the chat window opens from a Pop-up or a mobile application. The structure is:
embed.agentbot.net/[name]/[token]
The Name field will be replaced by the name of the Bot (optional) and the Token field by the Token of the window you want to open (mandatory). See also the article "How to get the channel token”.
Example of how the standard URL should look:
With Name:
embed.agentbot.net/aivo/93ab73fd906f84325441707db1372356
Note: the name does not necessarily have to be the same as the bot's name. For compound names, space must be replaced by an underscore (_) |
Without Name:
embed.agentbot.net/93ab73fd906f84325441707db137235
If you want to add the window as a webview and you are having problems, click here.
How to send user parameters in the standardized URL?
When adding the window from a standardized URL, you will have the option to send parameters to be set in the user.
Normally, to request that the window be loaded into an embedded application, it is done in the following way:
embed.agentbot.net/[name]/[token]
To assign new parameters to the user, you must add the following:
embed.agentbot.net/[name]/[token]?user[parameter1]=Value1&user[parameter]=Value2
&: Symbol of separation between parameters
user: Must be sent before the parameter name
[parameter]: Name of the parameter
=Value: Parameter value
This way, the user will be getting the following parameters:
parameter1=Value1
parameter2=Value2