Create a chat action
Add a button to every chat that sends the customer to your other tools, like a helpdesk or order system.
Before you start
Section titled “Before you start”- Owner, admin or manager role in Soosh
Create the action
Section titled “Create the action”-
Go to Settings > Chat actions (opens Soosh in a new tab) and click Add chat action.
-
In Name, enter what it does, like Create a support ticket. Agents see it when they point at the button.
-
Choose an Icon.
-
Choose the Action type:
- Send to another app: sends the customer’s details to your system. Enter
Your app’s address, the HTTP method, any Headers (optional) and
the Request body (JSON). Click Insert template for a starting
point. The address must start with
https://, so nothing is sent unencrypted. - Open a web page: opens a page, like the customer’s record in your order system. Enter the URL. Turn on Open in new tab to keep the chat open.
- Run a script (for developers): runs your own code in Soosh,
for advanced use. It can’t reach the internet and is stopped after 2 seconds. It gets
contact,userandorganization, and can returnclipboard,toastorurl, likereturn { clipboard: contact.phone_number }.
- Send to another app: sends the customer’s details to your system. Enter
Your app’s address, the HTTP method, any Headers (optional) and
the Request body (JSON). Click Insert template for a starting
point. The address must start with
-
Click Add.
In the URL and the body, these are filled in for each chat:
{{contact.name}}, {{contact.phone_number}}, {{user.name}} and
{{user.email}}.
With Mask phone numbers on, a web page or a script gets the masked
number, like ********3210, as your team sees it in chats. Sending to
another app still sends the full number to your system.
Result
Section titled “Result”The button appears at the top of every chat for people who can use chat actions. See Run a chat action.
To hide it for a while, turn off its switch in the list.
Fix an action with an http:// address
Section titled “Fix an action with an http:// address”A chat action that sends to another app, saved with an address that starts
with http://, doesn’t run: agents who click it see that nothing was sent. The
list marks it Needs a fix. Click its edit button, change Your app’s
address to one that starts with https://, and click Save.