You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

menu

Приложение позволяет сгенерировать меню навигации, где выбор будет сохранен в переменную

{
    "menu": {
        "text": "Выберите пункт меню",
        "set": "${onClick.Menu}",
        "variable": "${response}",
        "buttons": [
          [
             {
                "text": "💰 Кредиты",
                "type": "reply"
             },
             {
                "text": "⚙️ Главное меню",
                "type": "reply"
             }
          ],
          [
             {
                "text": "💰 Депозиты",
                "type": "reply"
             },
             {
                "text": "🧙‍♂️ Помощь оператора",
                "type": "reply"
             }
          ]
        ]
    }
}

broadcastChatMessage

Предоставляет возможность отправить сообщение через Chat Gateway

{
    "broadcastChatMessage": {
        "peer": [
            "${destination}"
         ],
         "profile": {
             "id": "13"
         },
         "text": "${SMS}",
         "type": "text"
    }
}

recvMessage

Сохранить в переменную текстовое сообщение, полученное от пользователя в рамках активного диалога

{
    "recvMessage": {
        "set": "response",
        "timeout": 60
    }
}

sendText

Приложение позволяет отправить текстовое сообщение в рамках активного диалога

{
    "sendText": "Приветствую, ${Name}!"
}

sendFile

Приложение позволяет отправить ссылку на файл в рамках активного диалога

{
	"sendFile": {
		"url": "${file_link}"
	}
}

sendEmail

Отправка Email сообщения

{
	"sendEmail": {
		"cc": [
			"[email protected]"
        ],
        "attachment": {
             "files": [
                 69317,
                 69314
             ]
        },
        "from": "\"Bot Name\" <[email protected]>",
        "message": "<H3>Turn on SMS</h3>\n<b>Creditcard</b>: ${Creditcard[0]} <i>***</i> ${Creditcard[1]}",
        "smtp": {
             "auth": {
             	"password": "pass",
                "user": "[email protected]"
             },
             "port": "587",
             "server": "smtp.mail.com",
             "tls": true
         },
         "subject": "[webitel](${caller_id_name}) Email notification",
         "to": [
             "${customer_email}"
         ]
    }
}

getEmail

{
        "getEmail": {
            "email": {
                "id": "420",
                "message_id": "or message_id"
            },
            "set": {
                "vbody": "body",
                "vcc": "cc",
                "vfrom": "from",
                "vhtml": "html",
                "vin_reply_to": "in_reply_to",
                "vreply_to": "reply_to",
                "vsender": "sender",
                "vsubject": "subject",
                "vto": "to",
                "files": "attachments"
            }
        }
}

classifier

Классификатор типов ответов клиента

{
        "classifier": {
            "cluster": {
                "my": [
                    "good value"
                ]
            },
            "input": "my good value",
            "set": "my_var",
            "phraseSearch": "true",
            "matchType": "part"
        },
        "break": false,
        "tag": "39-classifier-custom-tag"
    }

chat history

Позволяет отправить истории диалога на электронную почту

{
  "chatHistory": {
        "conversationId": "${id}",
        "variable": "my_var",
        "format": "html",
        "timeout": "3000",
        "limit": "150"
    }
}

sendAction 

Позволяет отправлять посторонним провайдерам чатов сообщения о действиях нашего бота (схемы)

{
  "sendAction": {
                 "action": "typing"
                 }
}

Messaging applications

  • No labels