Actions8
Action → Send a Message
AI-generatedOverview
This node sends messages to a specified chatbot using the ChatData API. It is useful for automating conversations with chatbots, such as customer support, virtual assistants, or interactive bots. Users provide the chatbot ID, a series of messages with roles (user or assistant), and optional additional fields like conversation ID, model selection, and streaming options. The node sends these messages to the chatbot and returns the chatbot's response.
Use Case Examples
- Automate sending user queries to a chatbot and receive responses for customer support.
- Send a sequence of messages to a chatbot to simulate a conversation flow.
- Use different OpenAI models for message processing by specifying the base model.
Properties
| Name | Meaning |
|---|---|
| Chatbot Name or ID | The identifier of the chatbot to which messages will be sent. Can be selected from a list or specified via expression. |
| Messages | A collection of messages to send in the conversation, each with a role (user or assistant) and content. |
| Additional Fields | Optional settings including whether to append messages to the previous conversation, base model override, base prompt override, conversation ID, and whether to stream the response. |
Output
JSON
output- The response from the chatbot API containing the chatbot's reply and related data.
Dependencies
- An API key credential for authenticating with the ChatData API, including a base URL and API key.
Troubleshooting
- Ensure the chatbot ID is valid and accessible with the provided API credentials.
- At least one message must be provided; otherwise, the node throws an error.
- Check that the API base URL and API key are correctly configured in the credentials.
- If the API returns an error status, the node throws an error with the message from the API response.
- If streaming is enabled, ensure the environment supports streaming responses.