Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
menu
Приложение позволяет сгенерировать меню навигации, где выбор будет сохранен в переменную
Code Block |
---|
{ "menu": { "text": "Выберите пункт меню", "set": "${onClick.Menu}", "variable": "${response}", "buttons": [ [ { "text": "💰 Кредиты", "type": "reply" }, { "text": "⚙️ Главное меню", "type": "reply" } ], [ { "text": "💰 Депозиты", "type": "reply" }, { "text": "🧙♂️ Помощь оператора", "type": "reply" } ] ] } } |
recvMessage
Сохранить в переменную текстовое сообщение, полученное от пользователя в рамках активного диалога
Code Block |
---|
{ "recvMessage": { "set": "response", "timeout": 60 } } |
sendText
Приложение позволяет отправить текстовое сообщение в рамках активного диалога
Code Block |
---|
{ "sendText": "Приветствую, ${Name}!" } |
sendFile
Приложение позволяет отправить ссылку на файл в рамках активного диалога
Code Block |
---|
{ "sendFile": { "url": "${file_link}" } } |
sendEmail
Отправка Email сообщения
Code Block |
---|
{ "sendEmail": { "cc": [ "office@mail.com" ], "from": "\"Bot Name\" <bot@mail.com>", "message": "<H3>Turn on SMS</h3>\n<b>Creditcard</b>: ${Creditcard[0]} <i>***</i> ${Creditcard[1]}", "smtp": { "auth": { "password": "pass", "user": "bot@mail.com" }, "port": "587", "server": "smtp.mail.com", "tls": true }, "subject": "[webitel](${caller_id_name}) Email notification", "to": [ "${customer_email}" ] } } |
classifier
Классификатор типов ответов клиента
Code Block |
---|
{ "classifier": { "cluster": { "y": [ "да", "будет", "так", "оплачу" ] }, "input": "${google_transcript}", "set": "answer_def" } } |
Messaging applications
Table of Contents | ||
---|---|---|
|