Skip to content

Create a chat action

Add a button to every chat that sends the customer to your other tools, like a helpdesk or order system.

5 minutesOwners and adminsUpdated

  • Owner, admin or manager role in Soosh
  1. Go to Settings > Chat actions (opens Soosh in a new tab) and click Add chat action.

  2. In Name, enter what it does, like Create a support ticket. Agents see it when they point at the button.

  3. Choose an Icon.

  4. 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, user and organization, and can return clipboard, toast or url, like return { clipboard: contact.phone_number }.
  5. 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.

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.

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.