Creating a Code Step to Output Step Connection
- Getting Started
- Bot Building
- Smart Agent Chat
- Conversation Design
-
Developer Guides
Code Step Integration Static Step Integration Shopify Integration SETU Integration Exotel Integration CIBIL integration Freshdesk KMS Integration PayU Integration Zendesk Guide Integration Twilio Integration Razorpay Integration LeadSquared Integration USU(Unymira) Integration Helo(VivaConnect) Integration Salesforce KMS Integration Stripe Integration PayPal Integration CleverTap Integration Fynd Integration HubSpot Integration Magento Integration WooCommerce Integration Microsoft Dynamics 365 Integration
- Deployment
- External Agent Tool Setup
- Analytics & Reporting
- Notifications
- Commerce Plus
- Troubleshooting Guides
- Release Notes
You can transition from a code step to any output step basis a set of rules/conditions applied on the output JSON from the code step.
Transition Basis Rules on Output JSON:
You can apply a combination of rules combined by either AND
or OR
to traverse from one step to the other.
You can add rules in the following way:
- Click on the connection between a code step and an output step to open the RHS window.
- Select the condition combination type as
AND
orOR
. - Next, select the variable from the JSON on which you want to add a condition. For example, choose the
Salary
field from the JSON output. - Next, select the conditional operator that you want to apply from the dropdown. For example, choose the operator as
Greater Than
. - Finally, enter the value to complete the rule. For example, we can enter the value as
25000
. Now the rule becomesSalary Greater Than 25000
and the step will be traversed whenever this condition is true. - You can add another rule using the
+ Add Condition
button from the top menu of the RHS window.