I am using apiai module in node js and I am calling apiai query. I want to call my webservice from my nodejs not apiai webhook. Is there any mechanism.
Asked
Active
Viewed 207 times
0
-
Is it a SOAP webservice? – Eliahu Horwitz Apr 27 '17 at 10:51
-
No its rest with nodejs. – Khushal Chouhan Apr 28 '17 at 10:30
-
Can you elaborate please? What is not working currently, what is the desired outcome, can you share some code? – Jon Church Apr 28 '17 at 15:08
-
Why don't you do a webhook to api ai and then make the handler call your REST api. You can add a switch case in order to call different REST endpoints pending in the api ai action. Of course this is a fairly simple setup and if you elaborate I can give you better advice on the node architecture – Eliahu Horwitz Apr 28 '17 at 20:52