From the homepage navigate to the "My Skills" tab
Click "➕" to add a new Skill
Select Third Party as the skill's type, select the skill language, give the skill a name and click "OK"
Active response service through the left side bar. Click the switch button and fill in the API server address field.
When the response service is activated, the platform will send an HTTP GET request to the server. This GET request will accept client question(s).
Assume the API URL filled in is http://my.domain.com/services/endpoint?q=
When the client says hello
, the platform will send following request
http://my.domain.com/services/endpoint?q=hello
The service should respond based on the search request. The service can ask other third party API and return the result to the client. information such as image, video, card, etc. can also be added.
The service response should fix the format for DialogAnswer. For example, for questions about the response data types, visit the rich response doc.
{"stage":[{"text":{"text":["Hello, is there anything I can help you with?"]}},{"image": {"title": "Image Title","url": "http://www.example.org/Costco-Waterloo-Ontario-Gas-Station.jpg","alt": "Some image."}}]}