Deluge Scripts
When an event occurs, and the configured rules are matched, SalesIQ Workflows can trigger one of three action types. The action types includes Deluge scripts, Flow builder (codeless), and Webhooks.
Deluge Scripts
Deluge (Data Enriched Language for the Universal Grid Environment) is Zoho's in-house scripting language. It's designed to be simple, flexible, and powerful, with a drag-and-drop script builder that makes it easy to automate logic without writing complex code.
Deluge is ideal for:
- Performing conditional logic
- Triggering actions across Zoho apps (like CRM, Desk, Campaigns)
- Calling external APIs for third-party integrations
Connection Interface
- Deluge also offers a connection interface that makes it easier to securely connect with third-party services. You can authenticate and reuse API credentials (OAuth tokens, API keys, etc.) directly in your scripts, making integrations more secure and maintainable.
Working
Once an event occurs and its rules are matched, the associated Deluge script is executed. You can access event details through the built-in entity object.
Example: If a chat is rated as sad, you can use the conversation.rated event to automatically create a ticket in Zoho Desk or send an alert in Zoho Cliq using a Deluge script.
To get the visitor's name and rating from the event payload:
Copiedvisitor_name = entity.get("visitor").get("name");
visitor_rating = entity.get("rating");You can retrieve any data sent with the event using this approach. The entity object holds the full payload structure.
Trial run
Once the scripting is completed, click on Save. You will be redirected to the summary/preview page, where all workflow details are displayed.
To perform a trial run
- Click on Trial run.
- A list of events configured in your workflow will be displayed automatically.
- Select the event you want to test.
- A sample payload will be generated based on the selected event.
- Click Edit to modify the payload values with data relevant to your portal.
- Save the changes and click Run.
- The workflow will run, and its status will be displayed in the header.
Note:
- Trial run executions are not recorded in workflow logs.
- Trial runs execute the workflow in real time, and any configured actions or data updates will take effect.
- Changes made to the payload directly affect the execution, so ensure the values are accurate.