Operational/Logical Nodes - Action and Logic


Action nodes are used whenever we need to take some action behind the scenes example database insert, API execution or document search etc.

To use an action node, simply add it to the flow where you want the action to be done.


API action node allows you to hit an API at that point of the flow, assign dynamic API parameters (if any) from user inputs and then store API response in a variable for further use.

In above node, we selected an API (explore_car) to hit, we provided value to parameter using variable. Then we store the whole response we will get from that API in a variable.

ℹ️ Learn how to directly use this variable, if JSON response in your nodes to access different fields in API response here

💻 Optional field : Transformation function Sometimes, an API response can be too big , or not in a proper format for us to be able to parse from easily. (Note that a function is not needed just to access a simple field of a JSON API response). In those cases, we can write a function to parse and transform API response according to our needs and return desirable response.

Snippet for Transformation function

return new Promise
(resolve => {
// For transfromation function tagged in API Node, To fetch api response
const response = ymLib.args.apiResponse;
// Your logic here
// Any value returned (or promisified value) - is stored in bot Variable storing API response
return resolve(<parsed response>);

📌 Note: To be able to invoke an API at certain point, it should already be added/configured at API management section of platform. All APIs added there are available in dropdown of the action node.

Click here to learn how to add APIs


Analytics node can be used to sent analytics events at any point in the execution of journey. You type the event name to push and select value.


Variables node can be used to set value of one or more variables at any point in the node. (Learn how to create a variable)

ℹ️ If you leave value blank, it will set to empty string


Database action node helps you in perform simple insert and search operations on your database tables.


You select insert operation to insert details against each column into any database table you select.

Bulk Insert#

You can also do bulk insert in database instead of just one row at a time. All you need on this node is to select a variable containing data you want to insert. [To be updated]


You can also perform search operation in database node.

  1. For searching, you can select a table you want to perform search on.

  2. Add filter: You can also add filters to your search (optional).

    Following filter conditons are available, let's understand with examples of what all will match with 'Model car' string -

    a. Is/Is not : for exactly matching/exactly not matching with value given. Eg: 'Model car' will be matched

    b. contains/does not contain : will be matched/omitted if it contains the given value Eg: 'Model car', 'this is a Model car', 'Model car 101' all will be matched/omitted

    c. contains any/does not contain any: this is like above, but here each word will be matched/omitted as contains instead of whole phrase. Eg: 'Model car', 'Model', 'car', 'this is a Model', 'car 242' etc all will be matched

    d. range: In range you can enter a from and to value as a filter. Eg: prince from:'1000' to:5000

  3. Output : You can sort the output based on a string type column (optional), modify the size of output (maximum no. of records to fetch) and store this result in a variable.


Update option in the database node can be used to update values stored in the tables. To do so:

  1. Select update option in database node
  2. Select the name of the table
  3. You can add a where condition that acts as condition that has to be met in order to update the value
  4. In Update with
  • In Fields add the name of column
  • In with value add the variable storing the value that you want to update current


You can use function node to excute code at any point in the flow. In this node you can select the code function you wish to execute and variable to store the return value of function in (optional).


Learn here about different methods/args you can use in functions.

Document Search#

Document Search action node is used to answer user query at any point in the flow (or fallback) from documents uploaded in the Knowledge base. (This node shows results from document cognition)

  • You can select a variable containing search query
  • You can also choose too add metadata filters (optional) to your query (the filters you tagged your documents with will show in dropdown).
  • You can branch flow from here based on whether any results were found in the documents (success) or not (failure).
  • There is no store output here, as the results are directly shown in carousals.
  • In node settings, you can configure total no. of results shown, total number of results per document and messages shown while showing results/reporting failure.

Send Email#

You can use Send Email node to Send Emails to user.

Following fields can be configured:

  • From is a default email. (Currently custom emails are not supported)
  • To can be selected from bot variables.
  • Subject- You can write plain text and use variables here.
  • Body - You can write plain text, basic HTML markdown, or can also use variables.


Modifier node is used to perform a series of simple operations like lower case, capitilise, remove from end, replace with etc on input variable and store the 'modified' output. This node can be quick used when you want to say, modify some user input before entering to DB or pass to API node, or fetch from API and show to user etc.


You can also test your series of modifiers by entering different input strings to check whether you are getting desired output in test window shown below.

Raise Ticket#

Raise ticket is used in order to connect user to the human agent. Raise Ticket Node can be found in Actions List -

This simple UI node can be used to setup basic & advanced scenarios such as Working Hours, Agent Availibiity, voice/video calling, etc required to create a ticket.

Raise Ticket Outputs -

  1. Ticket Closed - This essentially is bot behaviour after the Agent closes a ticket (i.e. s/he has resolved user query).
  2. Error - This can be used as a generic message in any case ticket creation is not successful. For customised messages, specific errors event hub can be configured.

While raising a ticket, you can pass fields such as Name , Contact (Email/Phone Number), and Query. Message after ticket assignment will be seen by user on getting connected to the agent.

Advanced Options - to provide additional information to the ticket.

As configured in Inbox Settings, Tags and Custom Fields will be visible in a multi-select dropdown(i.e. more than one options can be added to ticket)

  • Tags - Selected Tags from dropdown will be added to the extra details of the ticket (useful for agents to get a quick overview of the issue).

  • Department - Similar tickets can be assigned to relevant departments.

  • Priority - Denotes the priority of ticket from high, medium or low. (default priority is MEDIUM)

  • Voice Call Options - Voice Call, SIP Call and Auto Start Call can be enabled.

  • Custom Fields - Based on the use case additonal information collected by bot can be added to ticket. for example, in ecommerce Order ID, Payment Mode, Delivery date etc can be asked before connecting to the agent. Just like key value pairs, once a custom field is selected, additional prompt will be seen.

Error Handling

Output of Raise Ticket Node dictates general behaviour for any error in creating a ticket. In most real life scenarios, it is preferred to show appropriate reason to user as to why they cannot to an agent.

Note : Once any specific event is active and configured, the corresponding flow will be given preference. Bot is never paused unless ticket is in ASSIGNED state (i.e. Agent is interating with the user).

Follow two steps to handle custom scenarios -

  1. In Event Hub, activate the custom inbox event.Scenarios that can be handled -
  • All Available Agents Busy
  • All Available Agents Away
  • All Available Agents Offline
  • All Available Agents Limit Reached
  • Queue Not Enabled
  • Group Queue Not Enabled
  • Group Queue Limit Reached
  • Offline Ticketing Not Enabled
  • Offline Ticketing Not Enabled for Groups
  • Offline Ticket Queue Limit Reached
  1. Build a Flow with relevant event added in the Start Trigger.

Working Hours

If bot is suppose to respond with a different message outside of agent working hours, Logc Node can be used.

Note : The bot default timezone considered while evalutaing whether a user is outside working hours.

Set language#

You can use Set language action node to set or change the bot language at any given point in the flow. Set language action node takes only one input - variable containing ISO code of language you wish to change to. (Note : You can google the ISO codes for various languages)

Here is the list of languages that we support


Language can only be changed to only if that language is configured in bot settings, otherwise the node will fail.

Trigger Journey#

Trigger Journey action node can be used to trigger another journey at any point in the flow.


If you add more nodes after trigger journey, the bot will return to the remaining flow in the journey after triggered journey ins completed.

Send OTP and Verify OTP#

Send OTP and Verify OTP are simple nodes that can be used for sending and verifying OTPs.

In verify otp node, you can also branch the flow based on verification success and failure.

Generate PDF#

This node is used to generate PDFs that contain dynamic data.

Steps to generate dynamic documents:

  1. Upload a template document. This document should be in .docx format and have placeholder values wherever the dynamic data is to be inserted. The placeholder should be enclosed in single brackets, ie. {placeholdername}. eg: The company name is {company name}

  2. Map placeholder names to variables. Enter the placeholder name without the brackets in the left column and select variable value in the right column.

  3. Save to a variable

    This can now be sent through the Send file node. Simply choose the relevant variable from the fetch from variable dropdown, this will send the dynamically generated file as a PDF to the user.


If condition#

Using this condition node, you can branch flow based on multiple conditions. There are a variety of conditions available , as well as multiple things you can compare with.