Rasa文档中英文翻译版本 6 - User Guide: Architecture

本文档介绍如何使用Rasa在多个消息平台(如Facebook Messenger、Slack、Telegram等)上部署聊天机器人助手,包括配置credentials.yml文件及通过Ngrok进行本地测试的方法。
部署运行你感兴趣的模型镜像

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:

可以支持以下平台。

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 个连接/分钟。

 

您可能感兴趣的与本文相关的镜像

ACE-Step

ACE-Step

音乐合成
ACE-Step

ACE-Step是由中国团队阶跃星辰(StepFun)与ACE Studio联手打造的开源音乐生成模型。 它拥有3.5B参数量,支持快速高质量生成、强可控性和易于拓展的特点。 最厉害的是,它可以生成多种语言的歌曲,包括但不限于中文、英文、日文等19种语言

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值