This article explains the AI Workflow Node, which can be configured as part of Workflows to perform AI-driven tasks, such as generating content, analyzing images, or performing calculations based on given instructions. Learn more about using workflows in Clappia here.
After you have added the AI workflow node to the app, you will be able to configure it. Once you have added the node or clicked on it, a right panel will appear where you can proceed to configure that node.
This is the name that appears in the Workflow on the left side (on the node). If there are multiple AI Workflow Nodes in the workflow, set different step names like AI Analysis for Defects or AI Text Generation.
Select the ChatGPT model for this step. Different models are available, allowing you to experiment and find the one that provides the most accurate or relevant responses for your task.
Type specific instructions here for the AI to follow. Type in the exact instructions to display the data that is needed and to remove any unwanted text generated by the AI. For example:
You can use field variables from the app to dynamically include data in the AI's instructions, enabling personalized and context-aware responses. To pull variables from the app, simply type in @ followed by the field name.
Note: Tweak your instructions to get the required results before distributing the app to users.
The parent step refers to the function that is directly above the AI Workflow Node in the workflow. This might be a Start node or another preceding workflow node.
This step is enabled by default. Disable this step to stop the AI Workflow Node and any nodes below it from executing.
Once the AI Workflow Node is saved, it generates a unique Variable Name for the node (e.g., ai). This variable stores the output generated by the AI, based on the instructions given. You can use this variable in subsequent workflow nodes to reference the AI-generated output directly, allowing for dynamic automation based on the AI results. Again, to pull up the variable for the workflow node, type in @ followed by the workflow node’s name.
The Variable Name created by the AI node can be integrated into other workflow nodes to automate actions. Here are some examples:
This variable-driven approach enhances flexibility, enabling you to apply the AI output dynamically across different parts of the workflow.
A manufacturing facility performs routine inspections on control panels for critical machinery to ensure ongoing functionality and safety compliance. Inspectors photograph the panel, and the AI Workflow Node analyzes the image to identify potential issues due to wear and tear.
AI Node
Step Name: AI
AI Model: gpt-4o
Instructions: Analyse the image in {upload_ima} to check for defects such as missing buttons, damaged displays, loose wiring, misaligned labels, Loose or Missing Screws and Rust or Corrosion. Generate a report that begins with 'Defect Detected' if issues are found, listing each defect. If no issues, return output as 'No Defects'.
In the instructions, the variable {upload_ima} has been used as there is a Camera, Images & Files block added to the app with that variable name.
If Node
Condition: LEFT({ai1}, 15) = "Defect Detected"
If Node
Condition: LEFT({ai1}, 15) = "No Defects"
Body: {ai1}
Rest of the configurations for this node as per user requirement. Check here to see how to configure the email node.
Once a submission is made with the image uploaded;
The workflow begins, and the AI node processes the image as per instruction. As per the workflow the email is received as seen in the image below;
The body of the email, instead of being manually written, dynamically takes the output generated by the ai which is a complete report as asked in the instruction of the AI node. Modify the instructions to get different results as per requirements.
L374, 1st Floor, 5th Main Rd, Sector 6, HSR Layout, Bengaluru, Karnataka 560102, India
+91 96418 61031
3500 S DuPont Hwy, Dover,
Kent 19901, Delaware, USA
+1 (341) 209-1116
3500 S DuPont Hwy, Dover,
Kent 19901, Delaware, USA
+1 (341) 209-1116
L374, 1st Floor, 5th Main Rd, Sector 6, HSR Layout, Bengaluru, Karnataka 560102, India
+91 96418 61031