SendWave API icon

SendWave API

Interactuar con SendWave API

Integration → Dify

AI-generated

Summary

Manage Dify bots via the SendWave API integration.

Inputs

  • apiKey — Optional API key override from webhook JSON data.
  • instanceName (required) — Instance name that will send the message.
  • resourceForDifyBot (required) — Action to perform on the Dify bot: createDify, findDify, updateDify, deleteDify, fetchSessionsDify, or changeStatusDify.
  • difyBotId — Dify ID to search, update, delete, fetch sessions for, or change status of. Leave empty to fetch all sessions when using fetchSessionsDify.
  • apiUrl (required) — Dify URL (required for createDify and updateDify).
  • apiKeyBot (required) — Dify bot API key (required for createDify and updateDify).
  • triggerType — Trigger type for createDify/updateDify: keyword or all.
  • triggerOperator — Operator for keyword trigger: contains, equals, startsWith, endsWith, regex (applies when triggerType is keyword).
  • triggerValue — Keyword/phrase or regex used as trigger to start the Dify bot (applies when triggerType is keyword).
  • expire — Minutes of inactivity after which the bot is deactivated (applies to createDify/updateDify).
  • keywordFinish — Keyword/phrase used to close the bot (applies to createDify/updateDify).
  • delayMessage — Default message delay in milliseconds (applies to createDify/updateDify).
  • unknownMessage — Response when message is not recognized (applies to createDify/updateDify).
  • listeningFromMe — Whether the bot listens to messages sent by the user (applies to createDify/updateDify).
  • stopBotFromMe — Whether to pause the bot when the user sends a message (applies to createDify/updateDify).
  • keepOpen — Whether to keep the bot session open (applies to createDify/updateDify).
  • debounceTime — Wait time in seconds to group subsequent messages into a single input (applies to createDify/updateDify).
  • remoteJid — Remote JID of the recipient (required for changeStatusDify).
  • status — Session status to set: opened, paused, or closed (required for changeStatusDify).

Output shape

Depends on selected action: createDify/updateDify return the created/updated bot object; findDify returns the bot matching difyBotId (or all if empty); deleteDify returns confirmation; fetchSessionsDify returns session list; changeStatusDify returns updated session status.

Refer to the node's execute/integrations/setDifyBot.js for exact return structure.

Discussion