使用 Postman 向 QnA maker 发送 Post 请求

提问,获取知识库答案。服务创建好后,有几种非代码方式:

1.在 QnAMaker.ai 门户右边,有个 Test 模拟器

2.电脑调用端 Postman / Curl

3.对于bot Framework,电脑端有提供一个模拟器。

 

1.打开知识库Setting页面:

使用 Postman 向 QnA maker 发送 Post 请求

使用 Postman 向 QnA maker 发送 Post 请求

2.Postman中,方式选择Post,地址栏输入Host+POST的拼接:

使用 Postman 向 QnA maker 发送 Post 请求

 question直接拼接在地址后,或者在params输入均可。

 

3.Authorization里输入 Endpoint Key:

使用 Postman 向 QnA maker 发送 Post 请求

 

4. Headers里输入 Content-Type: application/json

使用 Postman 向 QnA maker 发送 Post 请求