Skip to main content

Typeform

Typeform sends a webhook for every completed response. With the Flows address in it, each response becomes the form_submitted event with the title of the form — and the respondent gets a confirmation, a reminder or the next step in Viber or SMS.

Written from Typeform documentation

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

What you need​

  • A Typeform plan with webhooks. Which plans have them is not confirmed by the documentation: the help pages of Typeform were not available to us, and third-party sources say the free plan has no webhooks.
  • A Phone number question in the form: AlphaFlow finds the phone by this question type. Ask for the email with an Email question.
  • One webhook per form. The same address can go into the webhooks of several forms.

Step 1. Create a connection​

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

Step 2. Set up the webhook in Typeform​

The path below is not confirmed by Typeform's documentation: it follows the developer documentation and practice.

  1. Open the form → the Connect tab → Webhooks → Add a webhook.
  2. Endpoint — the address from the cabinet. Press Save webhook.
  3. Switch the webhook on (Enabled).
  4. Secret is optional. If you set it, Typeform signs every request with the Typeform-Signature header; paste the same secret into the connection in AlphaFlow. Without it, the secret in the address is enough.

Step 3. Send a test​

Submit the form yourself with your own phone number. The event appears in Flows → Connections → Event journal within seconds, and the connection shows Recognised: Typeform. The webhook settings also have a test send and a delivery log; the names of these buttons are not confirmed by the documentation.

Events​

Typeform eventAlphaFlow eventProperties
A completed response (form_response)form_submittedform, form_id, response_id, hidden, score
A partial response (form_response_partial)—accepted and skipped
  • form is the title of the form, hidden — the hidden fields of the form (for example a campaign tag or your user id), score — the score of a quiz.
  • The contact is found by the answer to the Phone number question and by the answer to the Email question. The first name is an ordinary short text and cannot be found by its type: choose that question in the connection.
  • For an application form the event can be changed to lead_submitted in the connection.
  • Partial responses come only if they are switched on for the webhook through the Typeform API.

Good to know​

  • Typeform waits 30 seconds for the answer; AlphaFlow answers at once. If a delivery fails, 404 and 410 switch the webhook off at once; 408, 423, 429 and 503 are repeated every 2–3 minutes for 10 hours; other failures after 5, 10 and 20 minutes, then 1, 2, 3 and 4 hours. A repeat carries the same response token in message_id and is not recorded twice.
  • If all deliveries fail for 24 hours with more than 300 attempts, or 100 attempts fail within 5 minutes, Typeform switches the webhook off and notifies you.
  • The request is fixed: you cannot add fields or headers of your own. The phone arrives only if the form has a Phone number question or a hidden field with the phone. If the form is opened by a link with the phone in the hidden field phone (#phone=380…), AlphaFlow takes hidden.phone by itself when there is no Phone number answer. A hidden field with another name — choose it in the connection.
  • The event needs a phone or an email, or an id AlphaFlow already knows. Otherwise it is refused with no_contact and shown in the journal.
  • 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 Typeform stays on.

Typeform documentation​