External API for Agents
Setting up Amica's External API
Route: /api/amicaHandler
/api/amicaHandlerSupported HTTP Methods:
Input Types
1. Normal Chat Message: Retrieve normal chat response from Amica LLM without make avatar speaking.
JSON Input Example
JSON Output Example
2. Memory Request: Fetches memory data (Subconscious stored prompt).
JSON Input Example
JSON Output Example
3. RPC Logs: Fetches logs.
JSON Input Example
JSON Output Example
4. RPC User Input Messages: Fetches user input messages.
JSON Input Example
JSON Output Example
5. Update System Prompt: Updates the system prompt.
JSON Input Example
JSON Output Example
6. Brain Message: Adding new memory data (Subconscious stored prompt).
JSON Input Example
JSON Output Example
7. Chat History: Fetches chat history.
JSON Input Example
JSON Output Example
8. Remote Actions: Triggers actions like playback, animation, socialMedia and reprocess.
JSON Input Example
JSON Output Example
Route: /api/mediaHandler
/api/mediaHandlerSupported HTTP Methods:
Input Types
1. Voice: Converts audio input to text using specified STT (Speech-to-Text) backends.
2. Image: Processes an image file to extract text using Vision LLM.
Form-Data Input Example
Field Name
Type
Description
Curl Input Example
JSON Output Example
Error Handling
Logging
Notes
Route: /api/dataHandler
/api/dataHandlerFile Paths
Features
GET
POST
Last updated