POST
/
chat_agent
curl --request POST \
  --url https://agents-api.puppilot.co/chat_agent \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "input": "<String>",
  "model": "<String>"
}'
{
  "status": true,
  "reason": {
    "Plain English Concise": "<string>",
    "Plain English Summary": "<string>"
  }
}

How to Use

Required Input

  • input (string, required): The user’s query.
  • model (string, optional, default=gpt-4o): The LLM to query against. It can be one of the following:
gpt-4o
gpt-4o-mini
o1
o1-mini
o3-mini
Llama-3.3
Llama-3.2
Mixtral
Qwen
DeepSeek-V3
DeepSeek-R1

Request Example

{
  "input": "What causes allergies in a dog?",
  "model": "DeepSeek-R1"
}

Example Response

{
  "status": true,
  "reason": {
    "Plain English Concise": "Dog allergies are mainly caused by environmental and food allergens, flea bites, and contact irritants. Genetic factors and immune responses play a role, with certain breeds being more susceptible. Symptoms include itching and inflammation, often leading to secondary infections. Diagnosis involves exclusion of other causes, and treatment includes allergen avoidance and managing infections.",
    "Plain English Summary": "The primary causes of allergies in dogs are immune-mediated hypersensitivity reactions triggered by environmental allergens, food allergens, flea bites, and contact allergens. Environmental allergens, such as pollens, dust mites, and mold spores, are linked to Canine Atopic Dermatitis (CAD), which is influenced by genetic factors and defective skin barriers. Food allergies, known as Cutaneous Adverse Food Reactions (CAFR), are commonly triggered by proteins like beef, dairy, and chicken, with potential cross-reactivity between similar proteins. Flea allergy dermatitis is a reaction to flea saliva, while contact allergens include topical medications and shampoos. Key pathophysiological factors include skin barrier dysfunction and immune dysregulation, leading to symptoms like itching and inflammation, often resulting in secondary infections. Certain breeds, such as West Highland White Terriers and German Shepherds, are predisposed to these allergies. Diagnosis involves ruling out other causes, and treatment focuses on avoiding allergens, immunotherapy, and managing infections."
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
input
string
required
Example:

"<String>"

model
string
Example:

"<String>"

Response

200 - application/json
Chatbot found an answer to the query.
status
boolean

If false, input was not related to treatment plans.

reason
object