Customer Support API

AI-powered customer support with conversation history tracking and context awareness

API Endpoints

POST /api/customer-support

Submit customer queries and get AI-powered responses with context awareness.

Request Format:

{
      

POST /api/customer-support

Submit customer queries and get AI-powered responses with context awareness.

Request Format:

{
  "message": "Your question here",
  "email": "customer@example.com",
  "name": "Customer Name"
}

Response Format:

{
  "status": "success",
  "response": "AI generated response to your query...",
  "timestamp": "2025-04-11T15:45:00.000Z", 
  "inquiryId": "unique-id",
  "sources": [
    {
      "filename": "source-document.md",
      "score": 0.75
    }
  ]
}

GET /api/status

Check the system status and performance metrics.

Response Format:

{
  "status": "ok",
  "timestamp": "2025-04-11T15:45:00.000Z",
  "environment": "production",
  "customerCount": 42,
  "cacheStats": {
    "size": 156,
    "valid": 150
  }
}

Try It Out

Send a test query to the API directly from your browser:

Response: