Chat
Send Chat Message
Send a message to Hitler AI and receive a conversational response
POST
This endpoint requires authentication via JWT (for web users) or API key (for bot services).
Overview
The chat endpoint provides conversational AI capabilities powered by Anthropic tool use. The LLM understands natural language in any supported language, decides which tools to call (get_tasks, create_task_draft, log_mood, etc.), and returns responses grounded in real data. When tasks are detected, it creates drafts for user confirmation.Request
The user’s message (1-2000 characters)
Source platform:
web, slack, teams, or whatsappUser identifier on the platform (user ID or UUID)
Recent conversation history for context. Each item should have
role ("user" or "assistant")
and content (the message content).Response
The AI’s response message
Detected intent:
task_create, task_list, mood, help, greeting, or generalSingle task draft (when one task is detected). Contains
id (Draft UUID), title (Parsed task
title), priority (1-5), and optional dueDate.Multiple task drafts (when several tasks are detected)Each item contains
id, title, priority, and optional dueDateTask list returned when the LLM calls
get_tasks tool. Each item contains id, title,
status, priority, dueDate, createdAtTask that was just completed via the
complete_task tool. Contains id, title, statusMood entry just logged via the
log_mood tool. Contains id, value, note, createdAtRecent mood entries returned from
get_mood_history toolTask statistics from
get_task_stats tool. Contains totalTasks, completedTasks,
completionRate, openTasks, overdueTasksWhether to show mood logging UI
Mood value (1-5) inferred from the message, if detected
Intents
| Intent | Description | Typical Response |
|---|---|---|
task_create | User wants to create a task | Returns taskDraft or taskDrafts |
task_list | User asks about their tasks | Returns task summary in text |
mood | User wants to log mood | Sets showMoodPrompt: true |
help | User asks for help | Returns help information |
greeting | Casual greeting | Friendly response |
general | General conversation | Conversational response |
Service Endpoint
For bot services (Slack, Teams), use the service endpoint with API key authentication:X-API-Key header instead of JWT Bearer token.
Language Support
Hitler supports 13 languages with automatic detection:| Language | Code | Script Detection |
|---|---|---|
| English | english | Latin (default) |
| Hinglish | hinglish | Hindi patterns |
| Spanish | spanish | Spanish diacritics |
| French | french | French diacritics |
| German | german | German characters |
| Portuguese | portuguese | Portuguese diacritics |
| Italian | italian | Italian patterns |
| Dutch | dutch | Dutch words |
| Japanese | japanese | Hiragana/Katakana/Kanji |
| Korean | korean | Hangul |
| Chinese | chinese | CJK ideographs |
| Arabic | arabic | Arabic script |
| Russian | russian | Cyrillic |
Request (Spanish)
Response (Spanish)
Language Endpoints
Get Supported LanguagesNotes
- Task drafts created via chat must be confirmed using the Confirm Draft endpoint
- The AI uses conversation history for context, but history is not persisted server-side
- Mood inference happens silently and doesn’t interrupt the conversation
- Response messages are kept short (8-12 words) for chat-like UX
- Language is auto-detected from each message but can be manually set