Skip to main content

Tidio

Tidio is a live chat with chatbots for websites. Its own automations are also called Flows; on this page they are "Tidio Flows", so as not to mix them up with the flows of the cabinet. A Tidio Flow has the API call action — an HTTP request with a body you write. Sent to the Flows address, it starts your flows: a visitor left a phone in the chat — and gets a message in Viber or SMS; an agent marked the conversation as solved — and the customer gets a thank-you.

Written from Tidio documentation

This page is written from the public documentation of Tidio and has not been checked on a live account yet.

What you need​

  • Tidio Flows are on every plan, the free one included, with a limit of 100 AlphaFlow runs on it. Whether the API call action is on every plan is not confirmed by the documentation.
  • A phone in the contact. The event carries it only if the Tidio Flow collected it in the chat or the contact already had it.
  • One address for all Tidio Flows: the event is written in the body.

Step 1. Create a connection​

  1. Open Flows → Connections, press Connect a system and choose Tidio.
  2. Press Copy address. It looks like https://events.alphasms.net/hooks/<TOKEN> — keep it secret.

Step 2. Set up a Tidio Flow​

  1. A Tidio Flow for a lead: a trigger such as Visitor clicks on chat icon or Visitor opens a specific page → actions that ask for the phone (and the email) and save them to the contact properties → API call.
  2. A Tidio Flow for the closing: the trigger Agent marks conversation as solved → API call. The phone is taken from the contact property, if it was collected earlier.
  3. In the Actions tab open API call → Configure HTTP request. The method — POST; URL — the address from the cabinet (Tidio takes only https); Authentication — None: the secret is already in the address. No headers are needed.
  4. Body — JSON, the body below. Insert the values in <…> with Insert contact property or API key. In Used parameters set a Test value for each — the phone in the international format.
  5. Press the test button. AlphaFlow answers 200 with {"status":"success"}. Do not save outputs from the answer; you can switch off Require all outputs to run this request.
  6. After a successful test press Add request, save the Tidio Flow and switch it on.

The body; in the Tidio Flow for the closing change "lead_submitted" to "ticket_closed":

{
"event": "lead_submitted",
"contact": {
"phone": "<contact property Phone>",
"email": "<contact property Email>"
},
"traits": { "first_name": "<contact property Name>" },
"properties": { "channel": "tidio_chat" },
"context": { "source": "tidio" }
}

The names of the built-in contact properties — Phone, Email, Name — are not confirmed by the documentation: pick them from the menu.

Step 3. Send a test​

The test button in the request settings is required: without it Add request is not available. It is a real request, so an event with the test values comes. It appears in Flows → Connections → Event journal, and the connection shows Recognised: Tidio. Tidio itself keeps a log of requests that you can download as CSV after the Tidio Flow is saved.

Events​

Tidio FlowAlphaFlow eventProperties
A lead: the chat collected the phonelead_submittedchannel
Agent marks conversation as solvedticket_closedchannel

Tidio has no separate trigger for a started conversation, so there is no ticket_created here: a request from the chat comes as lead_submitted.

The contact is found by the phone and the email from the body; the first name comes from traits. An event without a phone and an email is refused with no_contact.

These events are not among the events of the ready-made templates (see Recommended events): create the flow From scratch and choose the event as its start.

Good to know​

  • The body has no unique id of the conversation, so it carries no message_id. Such an event is taken with the warning no_message_id, and a repeat of the same request becomes a second event. If the menu of properties offers an id of the conversation or the session, build a message_id from it (whether there is one is not confirmed by the documentation).
  • Retries are not described in the Tidio documentation; the action has the outputs Success and Fail.
  • Tidio does not sign requests: the secret in the address is enough. A request holds up to 10 headers.
  • The address always answers 200. Above the daily event limit the event is refused in AlphaFlow with quota_exceeded and shown in the journal; the Tidio Flow stays on.

Tidio documentation​