Skip to main content

Binotel

Binotel is a virtual PBX. After every finished call it sends the data of the call to a webhook — the method API CALL COMPLETED. Sent to the Flows address, it starts your flows: a customer called and nobody picked up — and a few minutes later the customer gets a message in Viber or SMS. If the customer calls again and gets through first, the message is not sent.

Written from Binotel documentation

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

What you need​

  • The e-mail of the administrator of your virtual PBX — the one tied to the Binotel account. The webhook address is not entered in the Binotel interface: Binotel support sets it at a request sent from that e-mail.
  • Which Binotel plans have webhooks is not confirmed by the documentation.
  • One address for API CALL COMPLETED on the whole PBX. If a CRM — KeyCRM, Bitrix24 and the like — already gets your calls by this method, replacing the address switches that integration off. Whether a second address can be added next to it is not confirmed by the documentation, so the letter below asks support about it.

Step 1. Create a connection​

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

Step 2. Ask Binotel support to set the address​

  1. Write from the administrator's e-mail to support@binotel.ua.
  2. Subject: Налаштування вебхука API CALL COMPLETED.
  3. Text — the letter below, with the address from the cabinet in place of <АДРЕСА З КАБІНЕТУ FLOW>:
Добрий день!
Прошу для нашої віртуальної АТС встановити адресу вебхука для методу API CALL COMPLETED (api-call-completed):
<АДРЕСА З КАБІНЕТУ FLOW>
Методи API CALL SETTINGS та API-PUSH не змінюйте.
Якщо для API CALL COMPLETED уже вказано адресу іншої інтеграції (CRM), не замінюйте її, а повідомте, будь ласка, чи можна додати другу адресу.
Дякую!
  1. Wait for support to answer that the address is set.

The letter leaves API CALL SETTINGS and API-PUSH alone on purpose: flows need only finished calls, and API CALL SETTINGS waits for an answer that changes the routing of a call. If support answers that the method is taken by a CRM and a second address cannot be added, choose: the address goes either to that CRM or to flows.

Step 3. Send a test​

Binotel has no test button. When support confirms the address, call your company number and hang up before anyone answers — call_missed comes. Then make a call that is answered — call_finished comes. Both appear in Flows → Connections → Event journal, and the connection shows Recognised: Binotel.

Events​

Binotel names the result of a call in disposition:

Result in BinotelAlphaFlow eventProperties
ANSWER — answered, TRANSFER — answered and transferred; incoming or outgoingcall_finishedcall_id, duration, direction, employee
Incoming: NOANSWER — no answer, BUSY — busy, CANCEL — the caller hung up before the answercall_missedcall_id, wait, direction, is_new_caller
Incoming: CONGESTION, CHANUNAVAIL — the call failedcall_missedcall_id, wait, direction, is_new_caller
Incoming: VM, VM-SUCCESS — voicemail, without or with a messagecall_missedcall_id, wait, direction, is_new_caller
  • Every call event carries all the properties: duration — the conversation in seconds; wait — the wait before the answer in seconds; disposition — the result as Binotel names it; direction — 0 incoming, 1 outgoing; is_new_caller — 1 if the number calls for the first time, 0 if it called before; pbx_number and pbx_number_name — the company number that was called and its name; employee — the employee.
  • Voicemail counts as missed: nobody answered, even if the caller left a message.
  • An outgoing call the customer did not answer starts nothing: the customer missed it, not your employee.
  • Results of SMS and fax start nothing.

The contact is found by the customer's phone (externalNumber). Binotel sends it in the local format, 0675639050; AlphaFlow brings it to the international format by the country of your account. The first name comes from the customer card in Binotel (customerData.name). Call events are not among the events of the ready-made templates (see Recommended events): create the flow from scratch, as below.

A message after a missed call​

  1. Create a flow From scratch with call_missed as its start. No filter by direction is needed: only incoming calls come as call_missed.
  2. Add the Wait for an event step: the event call_finished, for example 15 minutes since the start event.
  3. The event came — the customer called again and got through, or your employee called back and the customer answered: end the branch with Leave the flow. The event did not come — add a Send step with the message in Viber or SMS.

Good to know​

  • Binotel counts a call as delivered only when it gets its own reply, {"status":"success"}. The Flows address answers exactly that, so each call comes once; a repeat, if Binotel sends one, has the same call id and is not recorded twice.
  • Binotel does not sign its requests: the secret in the address is enough.
  • The webhook carries every call of the PBX, incoming and outgoing. An answered outgoing call comes as call_finished with direction 1; to start a flow only after incoming calls, add direction equals 0 to the Filters of its start.
  • 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 Binotel stays on.

Binotel documentation​