Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webapi使用 #10

Open
Baiyshen opened this issue Apr 9, 2023 · 0 comments
Open

webapi使用 #10

Baiyshen opened this issue Apr 9, 2023 · 0 comments

Comments

@Baiyshen
Copy link

Baiyshen commented Apr 9, 2023

第五章,查询天气,

如果使用webapi怎么请求呢,
第一步:发送:
http://localhost:5005/conversations/0/messages
{
  "sender": "user",
  "text": "上海的天气怎么样"
}

第二步:调用http://localhost:5005/conversations/0/predict
第三步:取第二步得分最高的action开始执行:
http://localhost:5005/conversations/0/execute
{
  "name": "weather_form"
}
得到需要确认日期,
第四步:
http://localhost:5005/conversations/0/messages
{
  "sender": "user",
  "text": "明天的"
}

到这里之后,slots都有了,怎么触发查询天气呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant