Overview
This node integrates with the Plemeo AI API to generate AI-based text responses from a given input message. It sends a user-provided message to the Plemeo API and returns the generated response text. This is useful in scenarios where automated conversational replies, chatbot responses, or AI-generated content are needed within an n8n workflow.
Practical examples:
- Automatically generating customer support replies based on user queries.
- Creating dynamic content for chatbots or virtual assistants.
- Generating creative text completions or suggestions in automation pipelines.
Properties
| Name | Meaning |
|---|---|
| API Hostname | The hostname of the Plemeo AI API server (e.g., tenant.plemeo.ai). |
| API Port | The port number on which the Plemeo API server listens (default is 8000). |
| API Path | The specific API endpoint path to send the request to (default is /generate_response). |
| API Key | The API key used for authenticating requests to the Plemeo API. |
| Message | The text message input for which the AI should generate a response. |
| Use HTTP | Boolean flag to use HTTP instead of HTTPS; useful if there are SSL certificate issues. |
Output
The node outputs JSON data containing the AI-generated response under the reply field. The structure is:
{
"reply": "Generated AI response text"
}
If the API returns an error or the request fails, the output will contain an error field describing the issue.
The node does not output binary data.
Dependencies
- Requires access to the Plemeo AI API service.
- Needs a valid API key credential for authentication.
- Supports both HTTPS and HTTP protocols (configurable).
- No additional external libraries beyond Node.js built-in
httpandhttpsmodules are required.
Troubleshooting
Common issues:
- Missing or incorrect API Hostname, API Key, or Message parameters will cause errors.
- SSL certificate problems can be bypassed by enabling the "Use HTTP" option, but this reduces security.
- Network connectivity issues or incorrect port/path settings may lead to request failures.
Error messages:
"API Hostname is required": Ensure the hostname parameter is set."API Key is required": Provide a valid API key."Message is required": Input message cannot be empty."Request failed: <error message>": Indicates network or connection issues.- API response errors are returned as part of the output's
errorfield.
Resolution tips:
- Double-check all input parameters for correctness.
- If SSL errors occur, try enabling the "Use HTTP" option.
- Verify network access to the specified hostname and port.
- Confirm that the API key has sufficient permissions.
Links and References
- Plemeo AI official website (for API documentation and support)
- n8n Documentation on Creating Custom Nodes
- Node.js
httpandhttpsmodules documentation for understanding request handling