Intro to Apps & Variables

Use variables & apps to automate your business

App nodes are a powerful way for your flows to interact with the ChatDaddy ecosystem & the rest of the world. You can do everything from creating a ticket, asking GPT a question to requesting data from your own servers.

 

This power can be compounded by chaining multiple apps together that pass information between each other via variables.

 

We’ll attempt to build an automated flow where all incoming inquiries are passed to our trained chatbot, and then if the chatbot couldn’t answer the query — we’ll create a ticket for it and notify our customer service (CS) teammate.

 

For the impatient of you, you can play with the created flow by clicking here

 
  1. We’ll start by setting up our AI chatbot, which you can do here
    1. Notion image
  1. Next, let’s create a Kanban board where we’ll put all customers whose queries the chatbot couldn’t answer, and need manual attention. You can create one in the CRM here. We’ve created a simple one here with 2 stages:
    1. Customers will first be put into the “Open” stage
    2. Once we’ve answered their query, we’ll close their ticket & move into the “Closed” stage
    3. Notion image
  1. Once the chatbot is setup, we’ll create a message flow and add an “Incoming Message” trigger. This trigger will start the flow whenever we receive any message from our customers. We’ll attach a condition node after it.
    1. Notion image
  1. Next, we’ll add some conditions.
    1. First, from the trigger node — we’ll add a condition node to it.
      1. Notion image
    2. Next, we’ll check if the customer messaging us doesn’t already have an open ticket. We do this because if the AI isn’t able to answer a customer — if the customer texts again, the AI shouldn’t respond again to avoid spamming the customer with nonsense.
    3. We achieve this by clicking the “Add Condition” variable & accessing the “Ticket Stage” variable & then ensuring no open ticket exists via an “is not” condition
    4. Notion image
      Notion image
  1. Next, we’ll connect the condition to an “AI Chatbot” node.
      • Click “Choose Next Step” and select “AI Chatbot”
        • Notion image
      • Add the integration we created step 1
        • Notion image
      • To pass the incoming message’s text to the chatbot, so it can process it — we’ll use the “Text” variable. We’ll access this by pressing the { key since “Input Text” is a free text field.
        • Notion image
  1. Once we get a response from the AI chatbot, we’d want to check if the bot was able to actually give a meaningful response. If so, we’d want to forward the response back to the user.
      • We’ll can do so by adding a condition from the AI chatbot node, and checking if “Successful Response” is true — i.e. the AI chatbot managed to generate a successful response
        • Notion image
      • We’ll connect a message node when this condition matches, and there — we’ll use the textual output of the AI chatbot & send it back to the customer. The text output can be obtained via the “Reply” variable — we’ll select that and just let that be the text of the message
        • Notion image
      • Bonus: scroll down and check “read chat on send” — this will automatically mark the chat as read as soon as this message is sent. On WhatsApp channels, it’ll even show a “typing…” sign to the recipient
        • Notion image
  1. Now, let’s handle the case where the AI chatbot failed to create a “successful response”. We’d want to create a ticket so our CS teammate can respond to them
    1. From the condition node created in step 6, we’ll connect a new “Create Ticket” node from the “If None Match” section. (The node connected in the section is called when none of the conditions you have set matched)
      1. Notion image
    2. In the Create Ticket App — we’ll set the name of the ticket alongside the stage it’ll get created in.
      1. For the title, we’ll use the “Name” variable suffixed with “- AI Fail” so we know where it came from
      2. For the stage, we’ll select the “Open” stage from the CRM board we created in step 2
      3. Notion image
  1. Let’s assign this customer to our CS teammate.
    1. For this, we’ll select the “Modify Contact” app in the next step section of the “create ticket” app we made in step 7
      1. Notion image
    2. Next, in the “Modify Contact” app — we’ll select our CS teammate as the assignee
      1. Notion image
  1. Finally, let’s send a message to the customer — letting them know we’ll get back to them ASAP
    1. We’ll simply connect a message node from the “Modify Contact” node we just created & type in a message
      1. Notion image
  1. Voila! We’ve an automated flow to take care of possibly all your CS & product inquiries. Test it out by sending one of your connected channels a message
    1. Notion image
       
 
Did this answer your question?
😞
😐
🤩