Overview
This node is designed to interact with an external agent service by sending a prompt and receiving a response. It is useful in scenarios where you want to integrate AI-driven chat or agent responses into your workflows, such as customer support automation, conversational AI applications, or interactive assistants. For example, you can send a user query as a prompt and get a generated answer from the agent in the specified language.
Properties
| Name | Meaning |
|---|---|
| Session ID | A unique identifier for the session to maintain context between requests. |
| Prompt | The input text or question sent to the agent to generate a chat response. |
| Language | The language code specifying the language of the agent's response. Options: English, German, French, Italian. |
Output
The node outputs JSON data containing the response from the agent service. This typically includes the agent's reply based on the provided prompt and session context. The output structure is not explicitly detailed in the source but generally will contain fields representing the agent's textual response and possibly metadata about the interaction.
No binary data output is indicated.
Dependencies
- Requires an API key credential and a user identifier credential to authenticate with the external agent service.
- The node sends a POST request to
https://api.mona-ai.cloud/agent/getAgentResponse. - Proper configuration of these credentials within n8n is necessary for successful operation.
Troubleshooting
Common issues:
- Missing or invalid API credentials will cause authentication failures.
- Incorrect or empty session ID or prompt may result in errors or empty responses.
- Network connectivity problems can prevent reaching the external API endpoint.
Error messages:
- Authentication errors typically indicate invalid or missing API keys; verify credentials.
- Validation errors may occur if required properties like session ID or prompt are not provided.
- Timeout or network errors suggest connectivity issues; check internet access and endpoint availability.
Links and References
- Mona AI Agent API Documentation (assumed based on URL, please verify)
- n8n documentation on HTTP Request Node for understanding how API calls work within n8n.