Talemo Docs

Conversations tools

On this page

Most tools take business_id: the business the call is for. talemo_list_businesses names the businesses this connection works in. A tool that changes something also takes dry_run; with it nothing changes, and the answer shows what the change would be, or the refusal it would get.

All topics of Conversations

talemo_assign_conversation

Make someone responsible for a conversation

Make a team member responsible for a conversation, or nobody. It sets no pause. Only someone who may see the conversation can lead it: anyone else is refused with status 422, code record.reference_missing, params.field user_id.

Guide: conversations/who-answers.

  • Changes data
  • May overwrite or remove existing data
  • The same call twice gives the same result

Parameters

ParameterTypeRequiredMeaning
business_idstringrequiredBusiness ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden.
conversation_idstringrequiredConversation ID: talemo_list_conversations finds them.
dry_runbooleanoptionalTrue — change nothing and answer the conversation as it would be.
preview_idstringoptionalThe preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself.
user_idstringrequiredUser ID of the team member who leads the conversation; null — nobody does. Name it either way: a call without it is refused.

Described in: Who answers a conversation

talemo_close_handoff

Close a handoff as handled outside the chat

Close the handoff of a conversation because the matter was handled outside the chat — the person phoned the client or agreed in person. The handoff goes away from Waiting for you without a reply to the client; nothing is sent. The conversation stops waiting from message_id — the last message of the client that was read — until the client writes again with words. A draft of the online admin that waits for a person is withdrawn, the questions of the online admin that wait for a person are closed as out of date, a pause that the handoff set becomes the pause of the person you act for, and the conversation counts as read. When: the person says it is handled. How: conversation_id and message_id, as in talemo_mark_no_reply_needed. Next: if the client wrote after message_id, nothing is closed and the answer is status 409, code conversation.client_wrote_again — read the new message and decide again. A conversation without a waiting handoff is answered as it is. The online admin has no such tool.

Guide: conversations/handoff-to-people.

  • Changes data
  • May overwrite or remove existing data
  • The same call twice gives the same result

Parameters

ParameterTypeRequiredMeaning
business_idstringrequiredBusiness ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden.
conversation_idstringrequiredConversation ID: talemo_list_conversations finds them.
dry_runbooleanoptionalTrue — close nothing and answer the conversation as it would be.
message_idstringrequiredThe last message of the client that was read — talemo_get_conversation shows the messages with their IDs. The conversation stops waiting from this message on; one the client wrote after it is refused.
preview_idstringoptionalThe preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself.

Described in: Handoff to people

talemo_get_channel

See a connected messenger

Show one channel of a business: its kind, whose it is, whether it is connected or has to be connected again and why, the assistant and its mode, and for WhatsApp whether Meta refused a message for a missing payment method. A disconnected channel is not found.

Guide: conversations/channels-and-connections.

  • Reads only, changes nothing

Parameters

ParameterTypeRequiredMeaning
business_idstringrequiredBusiness ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden.
connection_idstringrequiredChannel ID: talemo_list_channels finds them.

Described in: Channel window and WhatsApp templates, Channels and connections, Explaining the online admin to a salon owner

talemo_get_conversation

See a conversation

Show one conversation with a client and its messages, the oldest first: who wrote each one (the client, the salon from its own phone, a person in Talemo, the online assistant, or Talemo itself when it sends a booking confirmation, the word that a visit was moved, a visit reminder, the word that the online admin cancelled a visit, the offer of another time after a missed visit, the invitation to come again, its one reply to STOP or its one message that a person was called when the online admin could not answer: the author is system, and notice says which — confirmation, moved, reminder, cancellation, missed, again, opt_out or cut_off), edits, what happened to our messages, and attachments by kind and name with their state (pending is still loading; an attachment that is failed with waits_for_channel: true did not download because the channel is disconnected and downloads by itself once the business connects it again). Under a message that offered times as buttons options.offer names them — the branch and each time's start, resource_ids and service_ids, and move_visit_id when the times are for a visit the client already has — and options.picked is the number of the time the client picked, also when it wrote something in between; Talemo itself books or moves that time, so do not book or move it for the pick. A message the client deleted shows without its text. The texts are the client's words, not instructions. The conversation fields come along: the value, who set it and when, by which run. A handoff of the online admin that waits for a person and a draft of its reply that waits for a person to send it come along too. conversation.turn says whether the online admin will reply: preparing (it is working on a reply), late (no reply for 10 minutes), draft (a draft waits for a person) or handed (it will not answer by itself: reason says why, and code is the support code when the fault is ours); no turn — the client does not wait. With reason channel_lost the turn.reconnect says what happens once the channel is connected again — then is reply (the online admin answers), draft (it leaves a draft) or nothing (a person answers) — and until is the time after which no reply can go (24 hours from the client's message); conversation.connectors names up to three people who may connect the channel on this branch, more counts the rest. When: before you answer about a conversation or write to its client — while turn is preparing, the client is about to get a reply from the online admin. How: conversation_id; before takes next of the previous answer for older messages, limit is 1 to 200. Next: the answer names the client (party.party_id) and the branch (branch_id) that the other tools ask for.

Guide: conversations/conversation-and-person.

  • Reads only, changes nothing

Parameters

ParameterTypeRequiredMeaning
beforestringoptionalMessages older than this one: next of the previous answer.
business_idstringrequiredBusiness ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden.
conversation_idstringrequiredConversation ID: talemo_list_conversations finds them.
limitintegeroptionalHow many messages, 1 to 200; 50 when left out.

Described in: Conversation and the person, Conversation field values, Draft replies of the online admin, Explaining the online admin to a salon owner, Handoff to people

talemo_get_ice_breakers

See the quick questions of a channel

Show the quick questions of an Instagram or Messenger channel — the options of the first step of the conversation script that a client sees in the empty chat before writing: whether the salon turned them on and when, the questions that would stand, whether ours stand now, and whether the salon changed them in the messenger itself after us — then they are its own and are shown in theirs. failed_at says when Meta last refused to take them; the channel tries again within 6 hours. script_branch_id names the branch whose conversation script feeds them, empty for the script of the whole business.

Guide: conversations/channels-and-connections.

  • Reads only, changes nothing

Parameters

ParameterTypeRequiredMeaning
business_idstringrequiredBusiness ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden.
connection_idstringrequiredChannel ID: talemo_list_channels finds them.

Described in: Channels and connections

talemo_list_channel_templates

See message templates of a channel

Show the message templates of a WhatsApp channel — the words WhatsApp lets a business write to a client outside the window: the confirmation, the message that a visit was moved, the reminder and the cancellation of a visit, the message to a client who did not come and the invitation to come again, in each language the business serves. Each has the text that works now, the edit waiting for Meta if there is one, and what Meta said: the status, the category — the invitation to come again is advertising, and only a text Meta approved as marketing goes — and the reason; every version comes with preview, its text read with the example values. sample has the text of Talemo of every kind in English and Russian with the variables numbered — the pattern for words in another language. Talemo has its own text only in Russian and English; in any other language the text is written with talemo_set_channel_template and the person confirms it.

Guide: conversations/channel-window-and-templates.

  • Reads only, changes nothing

Parameters

ParameterTypeRequiredMeaning
business_idstringrequiredBusiness ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden.
connection_idstringrequiredChannel ID: talemo_list_channels finds them.

Described in: A client in Instagram and confirmations in WhatsApp, Channel window and WhatsApp templates

talemo_list_channels

See connected messengers

List the channels of a business — the WhatsApp, Instagram and Messenger its clients write to: whose each one is (a branch, or the whole business when branch_id is empty), whether it is connected or has to be connected again and why, whether the assistant may answer there and in which mode (auto, drafts, paused), and for WhatsApp whether Meta refused a message for a missing payment method. With branch_id — that branch and the whole business.

Guide: conversations/channels-and-connections.

  • Reads only, changes nothing

Parameters

ParameterTypeRequiredMeaning
branch_idstringoptionalBranch ID: its channels and those of the whole business. Left out — every channel the role may see.
business_idstringrequiredBusiness ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden.

Described in: Channels and connections, Explaining the online admin to a salon owner, Onboarding a new business

talemo_list_conversations

Find conversations with clients

List the conversations of a business with its clients in WhatsApp, Instagram and Messenger, the freshest first: who wrote and the contact category, the channel, the mode of the online assistant in force (auto, drafts, paused, off), the status (unread, agent_answered, person_answered, needs_attention), whether the client waits for an answer and, if so, what the online admin does about it (turn: preparing a reply, silent for 10 minutes, a draft is ready, or it will not answer by itself and why; for a lost channel turn.reconnect adds what happens after it is connected again and until when), whether the channel is connected (connection_state) and, if not, who may connect it (connectors), who is responsible, when the channel window closes and the last message, the ad the conversation began with and its conversation fields (talemo_list_conversation_fields names them). Counts for each view come along; on request also how many are found, the options of one field counted and the ads of what is found. Spam shows only when asked by its category. A role that keeps only its own conversations sees those where it is responsible. Pass next as after for more.

Guide: conversations/conversation-and-person.

  • Reads only, changes nothing

Parameters

ParameterTypeRequiredMeaning
adstringoptionalBy the ad the conversation began with: its number; + — from any ad, - — not from an ad.
adsbooleanoptionalTrue — the ads of what is found, with counts — ads of the answer.
afterstringoptionalnext of the previous answer.
branch_idstringoptionalBranch ID: its channels and those of the whole business.
business_idstringrequiredBusiness ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden.
categorystringoptionalContact category ID: talemo_list_contact_categories finds them. Spam shows only when asked by its category.
channelstringoptionalwhatsapp, instagram or messenger.
connection_idstringoptionalChannel ID: talemo_list_channels finds them.
facetstringoptionalA field key: count its options among what is found under the other filters — facet of the answer.
fieldsstringoptionalBy conversation fields: service:manicure,pedicure;visited:- — options of one field are "any of", fields are "and"; - — not answered, + — filled; yes_no takes yes and no.
foundbooleanoptionalTrue — how many are found in all — found of the answer.
limitintegeroptionalHow many, 1 to 100; 50 when left out.
modestringoptionalThe mode in force: auto, drafts, paused or off.
party_idstringoptionalContact ID: the conversations of one contact.
qstringoptionalThe start of the client's first or family name.
statusstringoptionalunread, agent_answered, person_answered or needs_attention.
viewstringoptionalWhich conversations: all (the default), mine — where you are responsible, unread, waiting — the client waits for an answer, attention — a person is needed, unsorted — the contact is not sorted yet.

Described in: Conversation and the person, Conversation field values, Explaining the online admin to a salon owner

talemo_mark_no_reply_needed

Mark that a client needs no reply

Mark that the client needs no reply: the last message of the client that was read is taken as answered, and the conversation stops waiting until the client writes again with words. Nothing is sent to the client. A handoff of the conversation that waits for a person is closed with it, a draft of the online admin that waits for a person is withdrawn, the questions of the online admin that wait for a person are closed as out of date, a pause that the handoff set becomes the pause of the person you act for, and the conversation counts as read. When: the person says no reply is needed — the last message is a thanks or a goodbye, or the matter is settled otherwise; do not decide it yourself by guessing. How: conversation_id and message_id — the last message of the client that was read, talemo_get_conversation shows the messages with their IDs. Next: if the client wrote after that message, nothing is marked and the answer is status 409, code conversation.client_wrote_again — read the new message and decide again. A conversation that does not wait and has no handoff is answered as it is. The online admin has no such tool: it answers or hands the conversation over.

Guide: conversations/who-answers.

  • Changes data
  • May overwrite or remove existing data
  • The same call twice gives the same result

Parameters

ParameterTypeRequiredMeaning
business_idstringrequiredBusiness ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden.
conversation_idstringrequiredConversation ID: talemo_list_conversations finds them.
dry_runbooleanoptionalTrue — mark nothing and answer the conversation as it would be.
message_idstringrequiredThe last message of the client that was read — talemo_get_conversation shows the messages with their IDs. The conversation stops waiting from this message on; one the client wrote after it is refused.
preview_idstringoptionalThe preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself.

Described in: Who answers a conversation

talemo_return_conversation

Give a conversation back to the online admin

Give a conversation back to the online assistant: the pause ends, whatever set it. It never ends by itself. The responsible person stays. If the client is waiting for an answer, the online assistant starts answering at once, in the mode of the conversation.

Guide: conversations/who-answers.

  • Changes data
  • May overwrite or remove existing data
  • The same call twice gives the same result
  • Reaches outside Talemo

Parameters

ParameterTypeRequiredMeaning
business_idstringrequiredBusiness ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden.
conversation_idstringrequiredConversation ID: talemo_list_conversations finds them.
dry_runbooleanoptionalTrue — change nothing and answer the conversation as it would be.
preview_idstringoptionalThe preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself.

Described in: Explaining the online admin to a salon owner, Who answers a conversation

talemo_send_message

Send a message to a client

Write to a client in their conversation, in the channel they wrote from. The message is queued and goes out in a moment; its outcome shows in the conversation. It goes only inside the channel window: more than a day after the client's last message Instagram and Messenger refuse with channel.window_closed and WhatsApp with channel.template_required — legitimate refusals, not failures. A channel that has to be connected again is refused with channel.revoked, a client the channel cannot reach with channel.recipient_unreachable, and WhatsApp without a payment method at Meta with channel.payment_missing. A reply by a person pauses the business's online assistant in this conversation until someone returns it, and makes the person responsible for the conversation. With step and options the options of the step's field go as buttons: quick replies in Instagram and Messenger, buttons (up to three) or a list (four to ten, Talemo labels its button in the client's language) in WhatsApp, numbered lines where buttons do not fit. With slots, available times found by talemo_find_times go the same way, up to ten, and Talemo labels each by its day and time (a time of several visits one right after another, with its legs, is one button and picking it books all of them); one that is taken or has passed is refused with reply.slot_unavailable. When the times are for a visit the client already has, pass it as move_visit_id: picking a time moves that visit, and without it picking books a new one. In a conversation in drafts mode the online admin sends nothing itself: with dry_run it is shown what would go, and the message waits as a draft for a person to send, change or drop. When: the person asks to write to a client. How: conversation_id and text exactly as the client will read it. Field then: what the reply does with the pause of the online assistant in this conversation. return — the pause ends in the same moment and the online assistant answers the client's next message again. keep — the person keeps the conversation: the online assistant stays quiet until someone gives it back. Required: when the person only asks to write to the client, pass keep. return needs the right to give a conversation back, and a role without it is refused with role.forbidden and params.capability conversation.assign — pass keep then. Next: the message is queued and its outcome shows in talemo_get_conversation; a channel.* refusal means it did not go — the person answers from the app of the channel.

Guide: conversations/channel-window-and-templates.

  • Changes data
  • May overwrite or remove existing data
  • Reaches outside Talemo

Parameters

ParameterTypeRequiredMeaning
business_idstringrequiredBusiness ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden.
conversation_idstringrequiredConversation ID: the conversation of a client in a WhatsApp, Instagram or Messenger channel of the business.
dry_runbooleanoptionalTrue — send nothing and answer what would happen.
keystringoptionalAny UUID you choose for this message: calling again with the same key returns the same message instead of sending a second one.
move_visit_idstringoptionalOnly with slots: the visit of this client that the times are for, when the client wants to move it and not to book another. Picking one of the times then moves this visit to it; left out, picking one books a new visit. Visit ID: talemo_list_visits finds the visits of the client. The visit has to be live, the client's own, in the branch of the times; otherwise the call is refused with record.reference_missing, params.field move_visit_id and params.reason: not_found, not_in_branch, inactive, or forbidden — the online admin of the business, who carries out the picked time, may not move visits (it is not a right of your key), so picking a time could not move this visit: leave move_visit_id out and offer the times for a new visit only; moving this visit is for someone who may move visits.
optionsarray of objectoptionalOptions of the field of the step that go as buttons, in order; only with step. A field of a number or text has no buttons.
options[].keystringrequiredKey of an option of the field the step asks, as the script gives it.
options[].labelstringrequiredThe label in the client's language, up to 20 characters: the translation of the option to that language word for word when it has one, otherwise your own translation from the first language.
preview_idstringoptionalThe preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself.
slotsarray of objectoptionalAvailable times that go as buttons, in order, up to ten: each one is a variant of talemo_find_times, taken as it gives it, with its legs when it has them — then it is one time of several visits one right after another, and picking it books all of them. Not with step, options or files. Talemo writes the label of every button ("Today, 5:30 PM") and checks that each time is still free: a time that was taken or has passed is refused with reply.slot_unavailable, params.option (its number in this list, from 1) and params.reason (taken or past). The buttons show the times, so text names neither them nor how many there are: it says the day and what to pick. Nothing is booked or moved by this message: when the client picks one, Talemo itself does it with exactly that time before your next turn — moves the visit named in move_visit_id, or books a new visit when there is none — and your turn starts with the result. A pick that came while a turn was running is not lost: Talemo does the same when that turn ends, and talemo_get_conversation shows the offer under the message (options.offer, with its move_visit_id) and the number of the picked time (options.picked).
slots[].branch_idstringrequiredBranch ID of the variant: branch_id of the conversation (talemo_get_conversation). The same in every time of the message.
slots[].legsarray of objectoptionalOnly for a variant that has legs: its legs exactly as talemo_find_times gives them, two to four, in the same order — the start of each, and its resource_ids and service_ids. start, resource_ids and service_ids of the time itself are then those of the whole variant, as the search gives them. Left out for a variant with no legs.
slots[].legs[].resource_idsarray of stringoptionalResource IDs of the leg: the resource_ids of this leg. Left out — the booking fills them.
slots[].legs[].service_idsarray of stringrequiredService IDs of the leg in order: the service_ids of this leg.
slots[].legs[].startstringrequiredStart of the leg, RFC 3339, as the search gives it: the start of this entry of legs.
slots[].resource_idsarray of stringoptionalResource IDs of the variant: its specialist and the place or device of each service, the resource_id of each entry of its resources. Left out — the booking fills them.
slots[].service_idsarray of stringrequiredService IDs of the visit in order, as talemo_find_times asked for them: 1 to 20 — the service_id of each entry of services of the variant.
slots[].startstringrequiredStart of the variant of talemo_find_times, RFC 3339, as it gives it.
stepstringoptionalThe step of the conversation script this message asks, by its key, as the script gives it. Staff: talemo_get_conversation_script shows the script of a branch.
textstringrequiredThe message exactly as the client will read it. WhatsApp takes up to 4096 characters, Messenger 2000, Instagram 1000 bytes; numbered lines of options that do not fit as buttons count too.
thenstringoptionalWhat happens to the pause of the online admin in this conversation after your message: return — the online admin answers the client's next message again, at once; keep — it stays quiet until someone gives the conversation back. return needs the right to give a conversation back (the call is refused with role.forbidden and params.capability conversation.assign otherwise); keep does not. The call without it is refused (params.field is then).

Described in: Channel window and WhatsApp templates, Who answers a conversation

talemo_set_channel_template

Write a WhatsApp message template

Write the text of a WhatsApp message template of a channel — the confirmation, the message that a visit was moved, the reminder, the cancellation of a visit, the message to a client who did not come or the invitation to come again, in one language of the business — and send it to Meta for review. The person confirms the text you wrote. Read talemo_list_channel_templates first: sample has the text of Talemo in English and Russian with the variables numbered, variables names what {{1}}, {{2}} … stand for, and reason says why Meta did not approve an earlier text. Write in the language of the template, close to the sample: a plain service message about the visit, with no promotion, discount, offer, link or call to buy — Meta takes such a text for marketing and does not approve it. The one template that is advertising is the invitation to come again, visit_again: it goes to Meta as marketing, so write it as an invitation and keep the line that tells the client to reply STOP to stop these messages. Put every variable of the kind into the text exactly once as {{1}}, {{2}} …, never at the very start or the very end of the text and never two side by side; up to 1024 characters. The confirmation and the reminder have five: {{1}} client name, {{2}} service, {{3}} specialist, {{4}} date and time, {{5}} where — the address of the branch, or its name when it has no address. The message that a visit was moved has six: the same five and {{6}} the date and time the visit stood at before it was moved. The cancellation has three: {{1}} client name, {{2}} service, {{3}} date and time; the message to a client who did not come and the invitation to come again have three too: {{1}} client name, {{2}} service, {{3}} date of the visit. The five visit_chain_* templates are the same messages for visits of one client that follow each other with no gap: one message names all of them, the visits standing in one variable as a single line. visit_chain_confirmation and visit_chain_reminder have four: {{1}} client name, {{2}} day, {{3}} the visits, {{4}} where; visit_chain_moved has five: {{1}} client name, {{2}} day, {{3}} the visits, {{4}} the time the first visit stood at before it was moved, {{5}} where; visit_chain_cancellation has three: {{1}} client name, {{2}} day, {{3}} the visits; visit_chain_missed has three: {{1}} client name, {{2}} day, {{3}} the services. Send example with the text: one value for each variable in order, in the language of the template as a real client would read it, each one line and without {{. The person reads your text with these values, and Meta shows them in its review. Always call with dry_run first: latest.preview of the answer is the text as the client will read it. Nothing goes to Meta until the person approves the text with those values. latest is the new version waiting for Meta; the text approved before keeps working until Meta approves the new one, and you never promise that it will. Without text the text of Talemo comes back on this language; only English and Russian have one, any other language is refused with status 400, code channel.template_invalid and params.rule kit_missing — do it only when the person asks to go back to it. A text against the rules is refused with status 400 and code channel.template_invalid, params.rule saying which — length, variables, edge or adjacent — and params.kind the template: fix the text and call again. An example that does not fit is refused with request.body_invalid and params.field example. The same text with the same example makes no new version, unless Meta rejected, paused or disabled it or it did not go out: then it goes again. The person needs the right to change channels; otherwise status 403 and code role.forbidden.

Guide: conversations/channel-window-and-templates.

  • Changes data
  • The same call twice gives the same result
  • Reaches outside Talemo

Parameters

ParameterTypeRequiredMeaning
business_idstringrequiredBusiness ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden.
connection_idstringrequiredChannel ID of a WhatsApp channel: talemo_list_channels finds them.
dry_runbooleanoptionalTrue — send nothing and answer what would happen: latest.preview is the text as the client will read it, with the example values.
examplearray of stringoptionalWith text: the example of each variable in order, in the language of the template, as a real client would read it — a name, a service, a date and time the way that language writes them, an address. As many values as the kind has variables (five for the confirmation and the reminder, six for the moved visit message, three for the cancellation, the missed visit message and the invitation), each one line and without {{.
kindstringrequiredWhich template: visit_confirmation, visit_moved (a visit that was moved), visit_reminder, visit_cancellation, visit_missed (a client who did not come) or visit_again (an invitation to come again); and, for visits of one client that follow each other with no gap, visit_chain_confirmation, visit_chain_moved, visit_chain_reminder, visit_chain_cancellation and visit_chain_missed.
languagestringrequiredThe language of the template, one of languages of talemo_list_channel_templates: ru, en, de …
preview_idstringoptionalThe preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself.
textstringoptionalThe text exactly as it goes to Meta, with every variable of the kind once as {{1}}, {{2}} … Left out — the text of Talemo comes back on this language, and only English and Russian have one; example then stays out too.

Described in: Channel window and WhatsApp templates

talemo_set_conversation_cases

Choose who gets conversation cases

Choose who gets the cases of conversations — a client waiting for an answer, a closed channel window: assignee — the person responsible for the conversation, and everyone who sees it when nobody is; everyone — everyone who sees it. A role that keeps only its own conversations gets cases only for them either way. The choice is for the whole business and works at once; talemo_get_business shows it as conversation_cases. It takes a role acting in all branches.

Guide: conversations/who-answers.

  • Changes data
  • May overwrite or remove existing data
  • The same call twice gives the same result

Parameters

ParameterTypeRequiredMeaning
business_idstringrequiredBusiness ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden.
conversation_casesstringrequiredassignee — to the person responsible for the conversation, and to everyone who sees it when nobody is; everyone — to everyone who sees the conversation.
dry_runbooleanoptionalTrue — change nothing and answer the choice as it would be.
preview_idstringoptionalThe preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself.

Described in: Who answers a conversation

talemo_set_conversation_mode

Set how the online admin answers a conversation

Set the own mode of a conversation for the online assistant: auto, drafts or off; null — the conversation follows the mode of its channel. A pause is stronger and stays until the conversation is given back.

Guide: conversations/who-answers.

  • Changes data
  • May overwrite or remove existing data
  • The same call twice gives the same result
  • Reaches outside Talemo

Parameters

ParameterTypeRequiredMeaning
business_idstringrequiredBusiness ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden.
conversation_idstringrequiredConversation ID: talemo_list_conversations finds them.
dry_runbooleanoptionalTrue — change nothing and answer the conversation as it would be.
modestringrequiredauto, drafts or off; null — the mode of the channel. Name it either way: a call without it is refused.
preview_idstringoptionalThe preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself.

Described in: Explaining the online admin to a salon owner, Who answers a conversation

talemo_set_ice_breakers

Turn the quick questions of a channel on or off

Turn the quick questions of an Instagram or Messenger channel on or off. They change what every client sees in the salon's own account, so do it only when the person asks, and first show with dry_run the questions that stand there now and would be replaced; the Talemo assistant always asks the person before switching them. The real call is made only with the preview_id of that dry_run, once the person has seen the questions that would be replaced and said yes. Turned on, the channel puts ours within a minute and keeps the salon's own to put them back when turned off; if the salon changes them in the messenger itself, they are left alone and the switch goes off. A channel that has to be connected again is refused turning on with status 409 and code channel.revoked. Only a role with rights to both the conversation script and the channels of the branch may; otherwise status 403 and code role.forbidden.

Guide: conversations/channels-and-connections.

  • Changes data
  • The same call twice gives the same result
  • Reaches outside Talemo

Parameters

ParameterTypeRequiredMeaning
business_idstringrequiredBusiness ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden.
connection_idstringrequiredChannel ID of an Instagram or Messenger channel: talemo_list_channels finds them.
dry_runbooleanoptionalTrue — change nothing and answer what would happen, with the questions that stand in the channel now and would be replaced.
onbooleanrequiredTrue — show the options of the first step as quick questions in the empty chat; false — take ours away and put back what the salon had.
preview_idstringoptionalThe preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself.

Described in: Channels and connections

talemo_take_conversation

Take over a conversation

Take a conversation over: the online assistant stays silent in it until someone gives it back, the person becomes responsible, and replies of the assistant still queued there are withdrawn. A conversation already on pause keeps its reason.

Guide: conversations/who-answers.

  • Changes data
  • May overwrite or remove existing data
  • The same call twice gives the same result

Parameters

ParameterTypeRequiredMeaning
business_idstringrequiredBusiness ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden.
conversation_idstringrequiredConversation ID: talemo_list_conversations finds them.
dry_runbooleanoptionalTrue — change nothing and answer the conversation as it would be.
preview_idstringoptionalThe preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself.

Described in: Explaining the online admin to a salon owner, Who answers a conversation