Skip to main content

Yespo (eSputnik)

Yespo (eSputnik) is a marketing platform with automated workflows. The Webhook block of a workflow sends a request with a body you write yourself. Pointed at the Flows address, it starts your flows: an order from the site is placed or paid, a cart is abandoned, a contact subscribes through a form — and the customer gets the right message in Viber or SMS.

Yespo already has the platform as a built-in SMS provider (Settings → Senders); flows add what a single SMS cannot do: Viber, a cascade of channels, chains with waiting and reminders.

Written from Yespo documentation

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

What you need​

  • Access to Automation → Workflows in Yespo. The Yespo documentation does not name the plan of the Webhook block.
  • An https address: Yespo does not save an http one. The Flows address is https.
  • One address for all workflows: the event is written in the body.

Step 1. Create a connection​

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

Step 2. Set up the Webhook block​

  1. Open Automation → Workflows and press New workflow, or open an existing workflow.
  2. On the Other tab take the Webhook block, press Select webhook → Manage Webhook and create a webhook:
    • Name — AlphaFlow. The name cannot be changed later.
    • Request type — POST.
    • URL — the address from the cabinet.
    • Pass parameters in headers — off.
    • Authentication — off: the secret is already in the address.
    • Request body — on, format JSON. Paste the body below.
  3. Change order_paid in event and in message_id to the event of this workflow (see Events).
  4. Press Send test, then Done, and put the Webhook block into the workflow after the step that should send the event.

The body (Velocity; $!field gives an empty value when there is none):

{
"event": "order_paid",
"message_id": "yespo:order_paid:$workflowInstanceId",
"contact": {
"phone": "$!phone",
"email": "$!email"
},
"traits": { "first_name": "$!name" },
"properties": {
"order_id": "$!orderId",
"total": "$!totalCost"
},
"context": { "source": "yespo" }
}
  • $!phone, $!email and $!name are the phone, the email and the name of the contact. The names of contact variables do not depend on the letter case.
  • orderId and totalCost are an example. The parameters of an event are named by you — by your site or plugin that passes the event to Yespo. Put your own: $<parameter>, or ${event.data.parameter} for a nested one.
  • $workflowInstanceId is the id of the workflow run for the contact. It stays the same in the retries of Yespo, so a retry is not recorded twice. It is case-sensitive.
  • Do not add $contact_ID as external_id: it is the Yespo id and would not match the ids of your shop.

Step 3. Send a test​

Press Send test in the webhook window. The test data is JSON with the variables, written in the same case as in the body. Then run the workflow on your own contact. The event appears in Flows → Connections → Event journal within seconds. The connection shows Recognised: Yespo (eSputnik).

Events​

What starts the workflowAlphaFlow eventProperties
An order from the site is placedorder_createdorder_id, total
An order is paidorder_paidorder_id, total
A cart is abandonedcart_updatedthe parameters you add
A contact subscribes through a formform_submitted—

Put order_paid only into a workflow that starts on a payment or checks a paid status in a condition. A workflow on any order sends order_created: otherwise an unpaid order reaches the customer as "paid".

AlphaFlow takes the body as it is: the contact is the phone and the email from contact, the first name comes from traits, the properties from properties. Nothing has to be mapped. The names of the events are the ones the ready-made templates expect — see Recommended events.

Good to know​

  • Yespo retries only on 5xx: every 3 minutes, up to 3 times. It makes one call for every recipient of the step.
  • There is no signature, and Authentication stays off: the secret in the address is enough.
  • Velocity does not escape quotes: a name with " breaks the JSON of the body. What Yespo does with such a body is not confirmed by its documentation.
  • A contact with neither a phone nor an email in Yespo gives an empty contact, and the event is refused with no_contact.
  • 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 webhook in Yespo stays on.

Yespo documentation​