我正在从这个储存库开发一个聊天机器人,目前我只与Slack连接,我希望他能够识别用户。那么,您知道如何在网上获取一些可以为我的聊天机器人的每个用户(研究的用户ID应该具有匿名存储能力)生成唯一的用户标识的东西吗?
from rasa_core.channels import HttpInputChannel
from rasa_core.agent import Agent
from rasa_core.interpreter import RasaNLUInterpreter
from rasa_slack_connector import SlackInput
nlu_interpreter = RasaNLUInterpreter('./models/nlu/default/weathernlu')
agent = Agent.load('./models/dialogue',interpreter = nlu_interpreter)
# https://api.slack.com/apps/AASPDV196/oauth?
input_channel = SlackInput('OAuth Access Token','Bot User OAuth Access Token',
'Verification Token',True)
agent.handle_channel(HttpInputChannel(5004,'/',input_channel))目前,我正在考虑是否:
uuid.uuid4 ()。松弛不是强制性的,但是,除了终端,我目前没有任何其他Chatbox通信接口。
https://stackoverflow.com/questions/50630146
复制相似问题