BormintoDevelopers Documentation
docs.borminto.com

Resolver

A resolver is one URL on your own server that Borminto calls every time the caller says something. Borminto does the listening and the speaking; your server does the thinking: your own model, your search, your database, or an action such as booking.

  1. The caller speaks

    Borminto turns the speech into text and posts it to your URL with the conversation history.

  2. Your server decides

    Return what to say, facts to phrase, a question, or an action that ends or transfers the call.

  3. Borminto speaks

    The reply is spoken in the call’s voice. Set the URL and copy its secret in the Resolver section of the application page.

You receive

request_idstring · always
Unique per question. A retry repeats it: return the same reply without repeating the action.
textstring · always
What the caller said, as heard by speech-to-text. Read it for its meaning; words that sound alike can be misheard.
historyarray · always
Up to 12 recent messages, each {"role": "caller" or "assistant", "text": …}.
stateobject · always
The state you returned last time, or {}.
metadataobject · always
What you sent when creating or connecting the conversation, or {}.
channel, languagestring · always
call or message, and the language such as ar-EG.
conversation_id, turn_id, deadline_msstring, integer · always
Identifiers, and how long Borminto waits for you.

You return

ReturnWhat happens
{"action":"say","text":"…"}Your words are spoken as written.
{"action":"facts","facts":["…"],"instructions":"…"}The assistant phrases a short reply from your facts only, or says it is not sure.
{"action":"ask","text":"…"}Ask the caller for missing details.
{"action":"end","text":"…"}Say goodbye; a live call closes after the sentence.
{"action":"transfer","text":"…","target":"sales"}Say the sentence, close the call and send call.transfer to your webhook.

Add "state": {…}, up to 4 KB, to any reply to receive it with the next question. Spoken text is limited to 1,200 characters and the reply body to 16 KB.

Rules

  • Verify X-Borminto-Signature: v1= and the HMAC-SHA256 of timestamp + "." + rawBody with your resolver secret, using X-Borminto-Timestamp. Reject requests older than 5 minutes.
  • Answer within your timeout, ideally under 800 ms. After about a second the caller hears your waiting sentence once; after the timeout, your fallback sentence. Borminto never guesses an answer for you.
  • Five failed answers in a row end a live call politely.

Search documentation

Documentation
Dashboard (opens in a new tab)