A building block that shows how to handle an inbound call
-
You must specify one endpoint must be on the path
/webhooks/answer
-
Your endpoint must be accessible a
GET
request -
Your endpoint must listen on port
3000
-
Your response should return a 200 status code
-
Your endpoint should handle query string parameters
-
Your response should be JSON NCCO with the the following or equivilent body:
-
GET
+ Querycurl "http://127.0.0.1:3000/webhooks/answer?from=447700900000"
-
Should return:
[
{
"action": "talk",
"text": "Thank you for calling from 4 4 7 7 0 0 9 0 0 0 0 0"
}
]
- Code examples should include a GitHub link to the file
- Code examples should include the line numbers used from the linked file
- All code examples must be present in the
master
branch of the relevant quickstart repo - All code examples must be tested to work (manual testing is fine)
- Fork this gist
- Edit the gist and the building block files to match the specification
- Return Gist as a comment in the original issue