Skip to main content
POST
Send Chat Message
Send a message to the SmartEat AI assistant and receive intelligent responses based on your profile and meal plan.

Authentication

This endpoint requires Bearer token authentication. Include your access token in the Authorization header:

Request

Query Parameters

string
required
The message content to send to the AI assistant. Can be questions about nutrition, meal planning requests, or general health inquiries.

Response

string
The AI assistant’s response to your message. This is generated based on your profile, active meal plan, and conversation context.
array
List of internal tools the AI agent used to generate the response. May include tools for profile access, meal plan management, or recommendation systems.

Example Request

cURL
Python
JavaScript

Example Response

200 - Success
401 - Unauthorized
500 - Server Error

Notes

  • The assistant maintains conversation context using a thread ID based on your user ID and current date
  • Messages are enhanced with your user ID to enable personalized tool usage
  • The AI agent has access to your profile, active meal plan, and can perform actions like creating plans or swapping recipes
  • Response times may vary based on the complexity of your request and whether the AI needs to query multiple data sources