Custom API

Last updated
// Send message to bot
curl -i \
-H "Content-Type: application/json" \
-H "Authorization: access_token" \
-X POST -d "{ \"userId\": \"123\", \"text\": \"xin chào\", \"userInfo\": {\"name\": \"user\"}}"\
https://apis.vnlp.ai/custom/webhook// Bot respond
curl -i \
-H "Content-Type: application/json" \
-H "Authorization: verify_token" \
-X POST -d "{ \"userId\": \"123\", \"responses\": [], \"intents\": [{\"value\": \"intent_name\", \"confidence\": 90}], \"allParameters\": {\"name\": \"username\"}}"\
partner_webhook