vivekgohil
(vivek Gohil)
February 20, 2020, 12:21pm
1
hello there, I am looking to get the “intent” and the “response” output in a single API as below from IBM Watson. This is a single API in watson, is there a similar API in RASA?
API:
https://api.eu-gb.assistant.watson.cloud.ibm.com/instances/5555666f-ccccss-3232-45dc-2222222vb452/v1/workspaces/ff93234g-1df3-8jfk-3242-87Zsfsa5456/message?version=2019-02-28
Input in Postman body:
{“input”: {“text”: “goodbye”}}
Output:
{
“intents”: [
{
“intent”: “General_Ending”,
“confidence”: 1
}
],
“entities”: [],
“input”: {
“text”: “goodbye”
},
“output”: {
“generic”: [
{
“response_type”: “text”,
“text”: “OK. See you later.”
}
],
“text”: [
“OK. See you later.”
],
“nodes_visited”: [
“node_2_1581424253523”
],
“log_messages”: []
},
“context”: {
“conversation_id”: “5baa6c54-747f-42a0-bc42-7322bcc1141f”,
“system”: {
“initialized”: true,
“dialog_stack”: [
{
“dialog_node”: “root”
}
],
“dialog_turn_counter”: 1,
“dialog_request_counter”: 1,
“_node_output_map”: {
“node_2_1581424253523”: {
“0”: [
0
]
}
},
“branch_exited”: true,
“branch_exited_reason”: “completed”
}
}
}
stephens
(Greg Stephens)
February 22, 2020, 4:41am
2
Yes, the Rasa X messages post call does this. Here’s an example from against my example jokebot. My endpoint in Post is http://{{host}}:5002/api/projects/default/logs?q=hi+there
(you have to login first). And here’s the output:
{
"id": 1,
"time": 1582346253.8678133488,
"model": null,
"hash": "fd33e2e8ad3cb1bdd3ea8f5633fcf5c7",
"project_id": null,
"team": null,
"user_input": {
"text": "hi there",
"intent": {
"name": "greet",
"confidence": 0.9901329875
},
"intent_ranking": [
{
"name": "greet",
"confidence": 0.9901329875
},
{
"name": "clear",
"confidence": 0.0035954923
},
{
"name": "chitchat",
"confidence": 0.0012443821
},
{
"name": "affirm",
"confidence": 0.0009115758
},
{
"name": "debug",
"confidence": 0.0009097602
},
{
"name": "slots",
"confidence": 0.0006664634
},
{
"name": "deny",
"confidence": 0.0006579722
},
{
"name": "version",
"confidence": 0.0006523812
},
{
"name": "stop",
"confidence": 0.0006398576
},
{
"name": "goodbye",
"confidence": 0.0005891098
}
],
"entities": []
}
}
vivekgohil
(vivek Gohil)
February 22, 2020, 7:03am
3
still in ur output ur not getting bot response i want the intent + bot response as well in single api
1 Like