AMIGO Webhook

Developer Integration Guide

Back to Chat Demo

Webhook Endpoints

Main Webhook:
/webhook
For Dialogflow integration
Health Check:
/health
Server status monitoring

Dialogflow Setup

  1. Copy this webhook URL to your Google Dialogflow agent
  2. Navigate to Fulfillment in your Dialogflow console
  3. Enable webhook and paste the URL with /webhook endpoint
  4. Configure your intents to use webhook fulfillment

Sample Test Request

Use this curl command to test the webhook:

curl -X POST [YOUR_WEBHOOK_URL]/webhook \
  -H "Content-Type: application/json" \
  -d '{
    "queryResult": {
      "intent": {
        "displayName": "express_sadness"
      },
      "queryText": "I feel really sad today",
      "parameters": {}
    },
    "session": "projects/test-project/agent/sessions/test-session"
  }'