Rasa文档中英文翻译版本 6 - User Guide: Architecture
https://rasa.com/docs/rasa/user-guide/messaging-and-voice-channels/
T by yi 2020.9.15
Messaging and Voice Channels
To make your assistant available on a messaging platform you need to provide credentials in a credentials.yml file. An example file is created when you run rasa init, so it’s easiest to edit that file and add your credentials there. Here is an example with Facebook credentials:
若要使助手在IM消息平台上可用,您需要在credentials.yml文件中提供凭据。很容易编辑运行 rasa init 时自动创建的示例文件里来添加凭据。下面是一个使用 Facebook 凭据的示例:
facebook:
verify: "rasa-bot"
secret: "3e34709d01ea89032asdebfe5a74518"
page-access-token: "EAAbHPa7H9rEBAAuFk4Q3gPKbDedQnx4djJJ1JmQ7CAqO4iJKrQcNT0wtD"
Learn how to make your assistant available on:
可以支持以下平台。
- Your Own Website
- Facebook Messenger
- Slack
- Telegram
- Twilio
- Microsoft Bot Framework
- Cisco Webex Teams
- RocketChat
- Mattermost
- Google Hangouts Chat
- Custom Connectors
Testing Channels on Your Local Machine with Ngrok
使用 Ngrok 在本地计算机上测试通道
You can use ngrok to create a connection to your local computer that is publicly available on the internet. You don’t need this when running Rasa on a server because, you can set up a domain name to point to that server’s IP address, or use the IP address itself.
After installing ngrok, run:
您可以使用ngrok 创建发布到互联网与本地计算机的链接。在服务器上运行 Rasa 时不需要此功能,因为可以设置一个域名来指向该服务器的 IP 地址,或者使用 IP 地址本身。
安装 ngrok 后,运行:
ngrok http 5005; rasa run
copy
copied!
Your webhook address will look like the following:
你的webhook 地址如下
https://yyyyyy.ngrok.io/webhooks/<CHANNEL>/webhook, e.g.
https://yyyyyy.ngrok.io/webhooks/facebook/webhook
Warning
With the free-tier of ngrok, you can run into limits on how many connections you can make per minute. As of writing this, it is set to 40 connections / minute.
使用 ngrok 的免费服务,您可以对每分钟可以建立多少连接进行限制。现在其设置为 40 个连接/分钟。
本文档介绍如何使用Rasa在多个消息平台(如Facebook Messenger、Slack、Telegram等)上部署聊天机器人助手,包括配置credentials.yml文件及通过Ngrok进行本地测试的方法。
1889

被折叠的 条评论
为什么被折叠?



