Overview
This node integrates with the Dewiar AI Assistant API to send a message and optionally an image for analysis. It supports maintaining conversational context via session IDs and can clear the dialogue history daily to save resources. This node is useful for automating AI-driven conversations, image analysis, or generating AI responses based on user input.
Use Case Examples
- Sending a text message to the AI assistant to get a response.
- Providing an image in Base64 format for the assistant to analyze and respond accordingly.
- Maintaining session context across multiple messages using a session ID.
- Automatically clearing the session history at midnight to manage resource usage.
Properties
| Name | Meaning |
|---|---|
| Сообщение | The text message to send to the AI assistant for processing. |
| Изображение (Base64) | Optional Base64-encoded image to be analyzed by the assistant. |
| ID Сессии (session_id) | Session ID to maintain conversation context. If empty, a new session is created automatically. |
| Начинать новую сессию в полночь (midnight_clear) | Whether to clear the dialogue history every day at midnight to save resources. |
Output
JSON
reaction- The AI assistant's response or reaction to the input message and image.response- Detailed response content from the AI assistant, including any error messages if applicable.
Dependencies
- Requires an API key credential for the Dewiar Assistant API, including base URL and API key.
Troubleshooting
- Error if the 'Сообщение' (message) field is empty: The node requires a non-empty message to function.
- API error responses are returned as node errors with the API's error message included.
- Ensure the API key and base URL credentials are correctly configured to avoid authentication errors.
- If the session ID is not provided, a new session is created automatically, which may affect context continuity.