Table of Contents
The Login verification URL feature can be found under Settings > Users > Login verification URL in smartai.support. This feature enables smartai.support to authenticate users from an external source and automatically register and log them in.
smartai.support will send a request to the specified URL, appending the user’s email address and the password entered in the chat login form as URL parameters. The parameters are named email and password.
Example:https://example.com/login.php?email=example@mail.com&password=12345678
The expected response from the URL should be a JSON object structured as shown below:
{
"first_name": "Emily",
"last_name": "Smith",
"email": "emily.smith@gmail.com",
"profile_image": "https://app.smartai.support/assets/images/users/emily-smith.png",
"department": "Customer Success",
"password": "",
"details": {
"location": [
"Location",
"London, United Kingdom"
],
"country_code": [
"Country code",
"Europe/London"
]
}
}
The value first_name is required.
Assign an Agent to a Conversation #
You can assign an agent to a conversation in several ways:
- Via the Q&A Set Data feature.
- Via the Flows Actions feature.
- Via the Queue or Routing features.
- By enabling the
Settings > Chat > Agentsmenu option.
In this case, users will be required to select an agent before starting a new conversation. - Via
Settings > Automations > More. - Via JavaScript, using the variable:
javascriptCopyEditvar SB_DEFAULT_AGENT = ID;Add this code to the pages where the chat is displayed and replaceIDwith the agent’s ID. For more details, refer to the API documentation here. - Via API.
