Overview
This node interacts with the Sensay API to perform chat completions with a specified replica. It is designed to send a series of messages to a replica identified by its UUID and receive a generated chat completion response. This is useful for applications involving conversational AI, chatbots, or automated assistants where dynamic, context-aware responses are needed.
Use Case Examples
- A user sends a series of messages to a replica to simulate a conversation and receives AI-generated replies.
- An automated assistant uses this node to generate responses based on user input and system instructions.
Properties
| Name | Meaning |
|---|---|
| Replica UUID | UUID of the replica to chat with, required to identify the target replica for the chat completion. |
| Messages | A collection of messages to send for completion, each with a role (user, assistant, system) and content string. |
| Additional Fields | Optional parameters to customize the chat completion such as streaming the response, maximum tokens to generate, temperature for response randomness, and whether to skip chat history. |
Output
JSON
content- The generated chat completion content from the replica.
Dependencies
- Sensay API
Troubleshooting
- Ensure that the Replica UUID is correctly provided; missing or incorrect UUID will cause errors.
- At least one message must be provided in the messages collection; an empty message list will throw an error.
- Check API credentials and network connectivity if requests to the Sensay API fail.
- If streaming is enabled, ensure the client supports handling streamed responses.
Links
- Sensay API Documentation - Official documentation for the Sensay API used by this node.