Menu
Articles in this section
Automation & Workflow Guide
Insightly’s three automation approaches, and how to build workflow processes that trigger actions when conditions are met.
On this page:
Automation options
Insightly has three ways to automate work.
- Pipelines with activity sets. Available on all plans. When an opportunity or project reaches a pipeline stage, an activity set creates the tasks and events for that stage. See Pipelines and Activity Sets.
- Workflow automation. Available on Professional and Enterprise plans. When a new or edited record meets your criteria, a workflow can send emails, create tasks and other records, update fields, and more. It works on contacts, leads, opportunities, organizations, projects, tasks, and custom objects. Workflows take more planning than pipelines, but they can handle much more complex processes.
- AppConnect recipes. With an AppConnect subscription, recipes connect Insightly to other apps. See What is AppConnect?
Workflow automation
Workflow processes work like if/then statements. When a record meets your conditions, actions fire. Administrators set them up for processes that repeat. For example, when a high-value opportunity is created, email the owner’s manager and add a follow-up task for a week later, or when a project moves to In Progress, create a check-in task 7 days later.
A workflow has up to four parts, each one inside the one before it.
- Process. Names the workflow, sets the record type it watches, and sets when records are evaluated.
- Criteria. The rules records are checked against. A process can have several sets of criteria.
- Time triggers (optional). Schedule actions relative to a date on the record, such as 5 days after the record matched or 2 days before the Forecast Close Date.
- Actions. What happens when a record matches, either right away or at a time trigger.
Insightly Workflow Automation Structure Diagram
⚠️ Plan workflows carefully. Workflows can get complex enough to produce a cascade of triggers and actions, so understanding how they interact matters before building.
CRM Process Criteria and Trigger Structure Diagram
Creating a workflow
- Go to System Settings > Workflow Automation and click New Workflow Process.
- Enter a Process Name and a Description that briefly outlines the criteria and actions, and choose the Record Type.
- Leave Active checked to turn the workflow on when you save, or uncheck it to finish setting it up first.
- Choose when to evaluate each record.
- Once, when the record is created.
- Multiple times, when the record is created and on every edit. The actions repeat each time the record matches.
- Multiple times, but stop once the record has matched the criteria.
- Once when the record is deleted.
- Click Save. The process page opens.
- Click Add Criteria, name the criteria, and add filter rows with a field, operator, and value. Use AND to narrow the matches and OR to broaden them. When you mix AND and OR across more than two filters, set the order in Filter Logic. Calculated fields can’t be used in criteria. Click Save Criteria.
- To schedule actions for later, click Add New Time Trigger, enter a number and unit, choose the date field it counts from, and click Save Time Trigger. Workflow Criteria Trigger Date is the moment the record matched.
- Click Actions in the Immediate Actions section, or in a time trigger’s section, choose an action, fill in the details, and save.
These actions are available.
- Add A Task. Creates a task linked to the record. The owner can be the record owner, a user lookup field on the record, or a queue, and you can fill in other task fields.
- Send An Email. Sends an email linked to the record, with attachments up to 9 MB. Merge fields work in the subject and body, and addresses in To, CC, and BCC can be stored as tokens so other users don’t see them.
- Add New Record. Creates a record linked to the trigger record.
- Add New Webhook. Sends the record’s data to another application. See Webhooks.
- Add to Marketing List. Adds the prospect linked to a contact or lead to a static marketing list, creating the prospect first if there isn’t one. Choose the current record or a contact or lead lookup field. If that field is empty, the action is logged and skipped. Requires both an Insightly CRM and an Insightly Marketing subscription.
- Run Lambda Function. Runs one of your Lambda functions. See Lambda functions.
- Update This Record. Changes field values on the trigger record.
- Trigger AppConnect Recipe. Starts an AppConnect recipe.
Managing existing workflows
A few things worth knowing: you can create up to 50 workflows per object type, and each workflow keeps a log of its last 100 runs (successful entries retained for 90 days), reviewable per workflow.
Existing workflows can be cloned rather than rebuilt from scratch. Useful when a new process needs the same criteria as one you already have. Cloning duplicates the whole process, criteria, and actions; the copy saves as inactive by default and can be edited independently.
- Go to System Settings > Workflow Automation, select a process, and click its three-dot menu, which offers Edit Workflow Process, Show Workflow Log, Clone Workflow, and Delete.
Workflow Actions Dropdown Menu Options
- The cloned workflow opens pre-filled with the original’s name, criteria, and actions (record type can’t be changed). Edit the process name, description, and other details via the edit icon, then enable the Active checkbox and save.
Edit Workflow Process Details Form
Individual criteria (not just whole processes) can also be edited, deleted, or cloned independently via their own three-dot menu. Cloning criteria alone doesn’t carry over its actions, only the filters and filter logic.
Criteria and Actions Management Menu Options
Workflow queue
Scheduled actions wait in the Workflow Queue, where you can view, filter, and cancel them. Open it with Workflow Queue at the top of the System Settings > Workflow Automation page.
Insightly deletes a pending action automatically when its record is deleted, when the record changes so it no longer matches the criteria, or when you change the criteria so the record no longer matches. After a criteria change, all records are checked again, new matches are queued under the current setup, and records already processed stay as they are.
Changes made by workflows appear in Field History Tracking, with the workflow process name in the Application column.
Personalizing workflow emails
When a workflow action sends an email, merge fields can be used in the subject line as well as the body, so the subject can pull in details like the recipient's name or the record it relates to, not just static text.
Webhooks
Webhooks send information from Insightly to an external application, and can be triggered from workflow automation.
Adding a Webhook to a Time Trigger
Saving a Webhook Action in Insightly
Webhooks are for users comfortable with custom coding; you’ll need technical staff or a developer if you don’t have programming knowledge. A webhook sends notifications using HTTP POST callbacks to a URL you specify, containing a collection of the record’s Field IDs paired with their values. Insightly’s webhooks use Basic authentication, so you can pass base64-encoded usernames and passwords. To preview what a webhook event looks like before going live, create a test URL with Request Bin and enter it into the URI field.
You can set up a callback URL in your own application to accept the POST and process the data, or use a service like Zapier. If there is no positive acknowledgement when Insightly sends the webhook, it tries two more times and then stops.
Lambda functions
A Lambda function is code your developer writes and uploads into Insightly, used to check, monitor, and update Insightly and other systems. Two trigger types exist: timed triggers that run on a schedule, and event-based triggers.
Lambda Integration Between Insightly and External Systems
Navigating to Lambda Functions in System Settings
Up to 50 functions are allowed per account, written in JavaScript, C#, Java, or Python. A few things to keep in mind: handler names must be prefixed with “index.” to reference the generated document correctly; console.log() output isn’t visible anywhere; and despite the Node.js 18.x label, the fetch API isn’t available. Use the https module instead.
Creating a function
- Prepare your code, either for inline entry or as a deployment package.
- Go to System Settings > Lambda Functions, click New Function, and enter a name and description.
- Choose the Runtime matching your code’s language.
Add Lambda Function Configuration Form
- Select the Invocation Payload: this controls what data gets sent to the function when it’s triggered (for example, “New Field Values Only”).
- Enter the Handler Name.
- For Node.js or Python, choose Edit Code Inline or Upload a.ZIP file; Java and C# only support upload.
- If entering code inline, write or paste it in the field further down the page.
- If uploading instead, include all of the function’s dependencies in the package. The package is capped at 50MB.
Add Lambda Function Configuration Form
- Optionally define Environment Variables: named values (like database connection strings) that the function can reference, so configuration can change without editing the function itself.
Environment Variables Configuration Panel in Insightly
ℹ️ If the function is triggered by a workflow, its input is a JSON object containing the triggering record’s new values (and, if “New and Old Field Value” is selected as the Invocation Payload, the record’s prior values too). The exact schema is object-specific. Reference Insightly’s API documentation for the full field list when building against it.
Using a Lambda function
|
1 Insightly Actions Menu With Lambda Function Option |
2 Lambda Function Scheduled Trigger Setup Link |
|
3 Lambda Function Trigger Schedule Dropdown Options |
4 Lambda Function Details Panel in Insightly |
Functions run with a 30 second timeout. If a function fails to run three consecutive times, it is automatically disabled. Environment variables have their own constraints: the total size of the variable set cannot exceed 4 KB, each name must start with a letter [a-zA-Z], and fields can only contain alphanumeric characters and underscores.
Things to keep in mind
Workflow processes can get complex, so plan carefully and learn how they work before building, to avoid a cascade of triggers and actions that make more changes than intended.
Emails sent through workflows have their own daily limit of 100 per user license, separate from the regular daily sending limit. A copy of each one is saved to the Emails tab, so they also count toward your record limit.
Except for leads, all new records created through workflows are linked to the record that triggers them. Leads don’t support linking the way other records do, so they’ll only be linked to their emails and tasks.
Actions taken by one workflow cannot trigger the criteria of another workflow. If one workflow creates a task and another is set to send an email when a task is created, the task from the first won’t trigger the second.
When a workflow action changes a Pipeline stage, it won’t trigger an activity set related to the new stage; re-create those tasks and events in the workflow’s actions instead. When a workflow action updates a field, it overwrites the current value.
The user who triggers a workflow action becomes the creator and owner of any new records that action creates.
All scheduled action times are triggered based on UTC/GMT (Greenwich/London time). Project milestones are not available in workflows.
If a workflow has been triggered and schedules an action for a future date, that action won’t be rescheduled if the workflow is triggered again. Once scheduled, it’s treated as a pending action and Insightly won’t replace it.
Related videos
Related to