Actions64
- Instance Actions
- Message Actions
- Group Actions
- Profile Actions
- Event Actions
- Integration Actions
- Chat Actions
Overview
This node integrates with the Dify bot API to perform various operations such as creating, checking, updating, deleting Dify bots, managing sessions, and changing session statuses. It is useful for automating interactions with Dify bots, managing bot sessions, and controlling bot behavior based on triggers and statuses. Practical examples include creating a new Dify bot with specific triggers, updating bot settings, fetching active sessions, or changing the status of a session.
Use Case Examples
- Create a new Dify bot with a keyword trigger and custom settings.
- Fetch all active sessions of a specific Dify bot.
- Update the configuration of an existing Dify bot.
- Change the status of a session to paused or closed.
Properties
| Name | Meaning |
|---|---|
| Instance Name | The name of the instance that will send the message, required for identifying the sender. |
| What Do You Want to Do | The specific operation to perform with the Dify integration, such as create, find, update, delete, fetch sessions, or change session status. |
| Dify ID | The ID of the Dify bot to search for or modify; optional for searching all bots. |
| Dify Url | The URL endpoint of the Dify API, required for creating or updating bots. |
| Dify ApiKey | The API key for authenticating with the Dify bot API, required for creating or updating bots. |
| Trigger Type | The type of trigger to activate the bot, either keyword-based or all messages. |
| Trigger Operator | The operator to match the trigger keyword, such as contains, equals, starts with, ends with, or regex. |
| Trigger | The word, phrase, or regex pattern used as the trigger to start the Dify bot. |
| Expires In (Minutes) | The duration in minutes without answers after which the bot should be deactivated. |
| Ending Keyword | The word or phrase used to close the bot session. |
| Default Message Delay (in Milliseconds) | The delay in milliseconds before the bot sends a message. |
| Unknown Message | The message sent when the bot does not recognize the input. |
| Listen to Messages Sent by Me | Whether the bot listens to messages sent by the current instance. |
| Pause the Bot When I Send a Message | Whether to pause the bot when the current instance sends a message. |
| Keep the Bot Session Open | Whether to keep the bot session open after a conversation ends. |
| Wait Time (in Seconds) | The time the bot waits for additional messages to join them into one. |
| Recipient Number | The recipient's RemoteJid, used when changing session status. |
| Status | The status to set for the session, such as opened, paused, or closed. |
Output
JSON
operationResult- The result of the performed Dify operation, such as creation confirmation, fetched data, update status, or deletion confirmation.
Dependencies
- Requires API key credential for authenticating with the Dify API.
Troubleshooting
- Ensure the API URL and API key are correctly set to avoid authentication errors.
- Verify that the Dify ID is correct when performing operations that require it, such as update or delete.
- Check that required fields like instance name, trigger values, and recipient number are provided to prevent validation errors.
- If the bot does not respond as expected, verify trigger type and operator settings.