What Deluge Is
Zoho’s scripting language — runs across CRM, Creator, Flow, and other Zoho apps. Pythonic syntax, built-in API tasks, idiomatic integration patterns.
Variables and Types
Types: String, Int, Decimal, Boolean, Map, List, DateTime, Key-Value records. Declaration is implicit — v = ‘hello’ creates a String. Watch for type coercion quirks.
Integration Tasks
invokeurl for HTTP, sendmail for email, zoho.crm.createRecord for CRM ops. Each task has named parameters. Error responses come back structured.
Error Handling
try/catch blocks. Use sendmail on catch to alert when a task fails. Silent failures in production Deluge are common and painful.
Performance
Deluge scripts have time limits (30–60s typical). Break long jobs into Zoho Flow chains. Batch API calls. Avoid nested loops over large result sets.