Step 1. - Establishing Functions

Let's dive in!

In this initial step, our aim is to create a fundamental function - a counter to track the number of times a user interacts with the function node. Utilizing this information, we'll leverage the decision node to smoothly guide our users through the Conversation Flow.

  • When the Chatbot/Voicebot interacts with the user for the first time, the chatbot will initiate a query to identify the user's name.

  • Subsequent interactions (beyond the first) will redirect the flow to a generative AI node designed to assist the customer.

This specific use case serves as a foundational example within this guide.

By incorporating additional function nodes and integrating backend-connected functions, we can create a user authorization flow based on the principles laid out in this simple guide.

Let's break it down step-by-step:
  1. Begin by creating a new project. If you require guidance, refer to the step-by-step instructions on this page.

  2. Click on the starting node and generate a function node.

  3. Establish a new variable named "County" using a smart function, specifically the counter function to track the flow's progression.

  4. Progress further by creating a decision node and define a basic condition.

    1. For the first iteration of the flow (when County variable == 1), focus on acquiring the customer's name.

    2. In subsequent iterations, follow the "Other" option to continue with the flow.

  5. Extend the decision-making process by creating a simple welcome message node.

  6. Craft a straightforward text introduction for the Chatbot/Voicebot and prompt the customer for their name.

Function nodes are incredibly versatile. They can be utilized to track specific use case information or retrieve data from your backend system, such as current date, time, user address, or numerical values.

Last updated