Evolution API Plus icon

Evolution API Plus

Interact with Evolution API

Integração → Dify

AI-generated

Summary

Manage and interact with Dify bot integrations by creating, retrieving, updating, deleting bots, as well as managing bot sessions and their statuses.

Inputs

  • instanceName (required) — Name of the instance that will send the message
  • resourceForDifyBot (required) — Action to perform with the Dify integration: add, find, update, delete bots; fetch sessions; or change session status.
  • difyBotId — ID of the Dify bot to target for operations like find, update, delete, fetch sessions, or change status; leave empty to target all for 'find'.
  • apiUrl (required) — URL of your Dify bot (required for create and update operations).
  • apiKeyBot (required) — API key of your Dify bot (required for create and update operations).
  • triggerType (required) — Type of trigger to initiate the Dify bot, either by keyword or all messages (required for create and update).
  • triggerOperator — Operator for keyword triggers, such as contains, equals, startsWith, endsWith, or regex (required if triggerType is keyword).
  • triggerValue (required) — Keyword or regex phrase used as a trigger to start the Dify bot (required if triggerType is keyword).
  • expire (required) — Time in minutes after which the bot deactivates if no responses are received (required for create and update).
  • keywordFinish (required) — Keyword or phrase used to close the bot session (required for create and update).
  • delayMessage (required) — Delay in milliseconds before the bot sends a message (required for create and update).
  • unknownMessage (required) — Message displayed when the bot does not recognize the input (required for create and update).
  • listeningFromMe — Boolean flag indicating if the bot listens to messages sent by the user (required for create and update).
  • stopBotFromMe — Boolean flag indicating if the bot pauses when the user sends a message (required for create and update).
  • keepOpen — Boolean flag to keep the bot session open (required for create and update).
  • debounceTime (required) — Time in seconds the bot waits after receiving a message before processing combined messages (required for create and update).
  • remoteJid (required) — RemoteJid (contact identifier) for changing session status (required for changeStatusDify operation).
  • status (required) — New status of the session: opened, paused, or closed (required for changeStatusDify operation).

Output shape

a JSON object containing the response from the Dify API corresponding to the requested operation, such as details of created, fetched, updated, or deleted bots, session lists, or status update confirmations.

Output structure depends on the chosen resourceForDifyBot action; all operations involve asynchronous API calls to Dify service endpoints and return their direct responses. Error handling and pagination (if applicable) are managed by the API but should be verified per action.

Links

Discussion