Skip to content
Snippets Groups Projects
Commit b81a254f authored by Jaime Alberto Sanchez Hidalgo's avatar Jaime Alberto Sanchez Hidalgo
Browse files

Add missing required sessionId to api.ai call on externalMessage

parent ecb3de67
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,8 @@ RocketChat.callbacks.add('afterSaveMessage', function(message, room) {
const response = HTTP.post('https://api.api.ai/api/query?v=20150910', {
data: {
query: message.msg,
lang: apiaiLanguage
lang: apiaiLanguage,
sessionId: room._id
},
headers: {
'Content-Type': 'application/json; charset=utf-8',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment