docs/versioned_docs/version-3.0.0-LTS/workflows/overview.md
ToolJet Workflows enable users to create complex, data-centric automations using a visual, node-based interface. It extends ToolJet's capabilities beyond building user interfaces, allowing developers and business users to automate processes, integrate data from various sources, and execute custom logic without writing extensive code.
<div style={{textAlign: 'center', paddingBottom: '15px'}}> </div>Workflows complements the app-building features by providing a way to handle backend processes, data transformations, and integrations. This makes ToolJet a more comprehensive solution for creating internal tools and automations.
This guide will walk you through creating your first workflow in ToolJet. You'll learn how to use the Workflow builder to create a simple automated process that fetches data from a database, filters it, and sends notifications based on certain conditions.
You'll start by fetching employee data from a ToolJetDB table named employees.
Next, you'll filter the employee data to include only those from California.
return getEmployees.data.filter(employee =>
employee.location === "California")
Next, you'll implement a loop to send SMS notifications to the filtered employees. The Loop node allows you to iterate through an array and perform an operation on each element.
{{value.number}} in the To Number field.Hey {{value.name}},
Here's the link with all the details for today's ToolJet
conference in California.
https://tooljet.com/events/{{value.location}}
Finally, you'll set up conditions to handle the success or failure of the SMS sending process.
sendSMS.status === "ok" ? true : falsereturn ({output: "success"})return ({output: "failure"})Click on the Run button on the top-right to execute the workflow. The logs panel will expand and provide an overview of all the nodes executed in this workflow.
<div style={{textAlign: 'center', paddingBottom: '15px'}}> </div>Congratulations on creating your first workflow! This workflow fetches data, transforms the data, sends SMS notifications, and handles success or failure responses.
As you saw in this example, ToolJet Workflows provides a streamlined way to extend the capabilities of your ToolJet applications and automate complex processes.