Skip to main content

$prompter

The $prompter service allows you to use the Prompter API in a prompter bot script and includes the pushReply method.

$prompter.pushReply

This method sends an agent appropriate answers to the customer’s question. Answer options are taken from intents and the knowledge base.

caution
It is used only in prompter bots connected to the Prompter API channel.

Syntax

The method is called without arguments.

$prompter.pushReply();

It sends answer parameters from the knowledge base and intents to Tovie Agent.

How to use

Let’s look at an example.

The knowledge base is connected to the script so that the bot can use the answers from it.

state: KnowledgeBase
intentGroup!: /KnowledgeBase
script:
$prompter.pushReply();

The bot knowledge base includes the FAQ.Contact Information module. The answer to the question In which countries do you have branches? is set there.

The answer to the question in the knowledge base

If a customer asks this question, an agent will receive a prompt in Tovie Agent:

Context prompter Prompter assistant