Actions10
- Agent Chat Actions
- Browser Automation Actions
- Code Execution Actions
- File Processing Actions
- Memory Operation Actions
- Tool Execution Actions
Overview
The Agent Chat - Send Message operation allows users to send a message to an AI agent within the Nerve Agent system. This node facilitates conversational interactions with AI agents, enabling workflows that require natural language communication, instructions, or data analysis requests.
Common scenarios include:
- Asking questions or requesting information from an AI assistant.
- Sending instructions for multi-agent orchestration or task execution.
- Maintaining ongoing conversations by tracking context across multiple messages.
- Attaching files to provide additional data or context for the AI agent to process.
Practical example:
- A user sends a question about sales data trends and attaches a CSV file containing recent sales figures. The AI agent analyzes the data and responds with insights.
- A developer integrates this node into a workflow to automate customer support chats, streaming responses in real-time for better user experience.
Properties
| Name | Meaning |
|---|---|
| Message | The text content sent to the AI agent. Can be questions, instructions, or data for analysis. |
| Agent Context ID | Optional unique identifier to maintain conversation history across executions. If empty, a new context is created automatically. |
| Stream Response | Boolean flag indicating whether to receive the AI agent's response as a real-time stream. |
| Attachments | One or more files attached to the message, providing additional context or data for the AI agent. |
Output
The node outputs JSON data representing the AI agent's response to the sent message. This typically includes the textual reply generated by the AI based on the input message and any attachments.
If streaming is enabled, the output may represent partial or incremental responses delivered in real-time.
Binary data output is not indicated for this operation.
Dependencies
- Requires an API key credential to authenticate with the Nerve Agent AI system.
- Needs the base URL of the Nerve Agent API configured in credentials.
- No other external dependencies are indicated.
Troubleshooting
- Missing or invalid API key: The node will fail if the API key credential is not provided or incorrect. Ensure the API key is valid and properly configured.
- Empty required message: Since the message property is required, leaving it empty will cause errors. Always provide a non-empty message string.
- Context ID management: Using inconsistent or incorrect context IDs can lead to loss of conversation continuity. Use consistent IDs to maintain chat history.
- Attachment issues: Incorrectly formatted or unsupported files may cause failures. Verify file paths and formats before attaching.
- Streaming problems: If streaming is enabled but the environment does not support it, responses may not arrive as expected. Disable streaming if real-time updates are not needed.
Links and References
- Nerve Agent Official Documentation (hypothetical link)
- n8n Documentation on Creating Custom Nodes
- General best practices for conversational AI integration and context management.