Flochat
API DocumentsWebsiteLog in
  • Start Here
    • Welcome 👋
    • Getting Support
    • FAQ's
    • Pricing Plans
  • GETTING STARTED GUIDE
    • Introduction
    • Set your goals
    • Building your chatbot
    • Maintain success
  • CHATBOT GUIDE FOR BEGINNERS
    • Introduction
    • What is a chatbot
    • Channels
    • Benefits & importance
    • Use cases
  • PLATFORM
    • Introduction
      • Change Password
      • Forgot Password
      • Getting Started Checklist
      • Platform Overview
      • Workspaces & Members
      • Integrations
        • Stripe
        • PayPal
        • Cloudinary
        • Shopify
        • Facebook Business
        • Calendly
        • Slack
        • Google Sheets
        • Data Store
        • Twilio
        • Signalwire
        • Email (SMTP / Gmail)
        • MailChimp
        • VideoSdk
      • Ecommerce
        • Setup Ecommerce
        • Use Ecommerce in the Flow
    • Connect to Channels
    • Website Chat
    • WhatsApp + 360Dialog
    • Email Templates
    • WhatsApp Cloud
  • Flow Builder
    • Flow builder overview
    • Field variable
    • Steps
      • Steps
      • Question step
      • Variable Operation
      • JSON Operation
      • External Request
      • Send Notification
      • Condition Step
      • Split Step
      • Go To Step
    • Sub Flows
      • Sub Flow
      • Workflow
      • Function Flow
  • Artificial Intelligence
    • OpenAI | ChatGPT
      • Connect OpenAI
      • Chat with AI Basics
      • What are Functions
        • Functions in Flows
        • Capturing Data
        • Generate function with AI
        • Combine chat completions & Functions
      • What are Embeddings
        • Create Embeddings
        • Add Embeds to your Flow
        • Error Handling
        • Combine Embeddings with Functions
    • GitBook Lens AI
  • Mini Apps
    • Stealth Seminar
  • Users
    • Live Chat
    • Bot Users
  • Bot Automation
    • Keywords
    • Sequences
    • Triggers
    • Comment Keywords
  • Contents
    • Custom Fields
    • Tags
    • One Time Notification (Facebook)
    • Personas
    • Menus
    • Customer Feedback (Facebook)
  • Tools
    • Error Logs
    • Testers
    • Admins
    • Multi Languages
    • Inbound Webooks
  • Broadcasting
    • Broadcasts
  • Developers
    • Chatbot API
  • BETA LAUNCH
    • Day One
Powered by GitBook
On this page
  1. Artificial Intelligence
  2. OpenAI | ChatGPT
  3. What are Functions

Functions in Flows

PreviousWhat are FunctionsNextCapturing Data

Last updated 1 year ago

Leverage AI to streamline your chatbot's development by guiding users into the appropriate flow through natural language. This method not only accelerates the build process but also enhances user interaction.

How to create a function

First we need to know how to create a basic function with AI. Navigate to the automations tab, to the left side of the builder window and select Intent 'Functions':

To create a new function select the +New Intent button to the top right of the screen.

This will now open a new window to set up your functions.

Let's start at the top left:

Name: Label your intent function - This must be a unique name 'this helps the AI find it faster'

Description: Optional, insert a description so you can recognise what the intent is about.

Parameters: We will cover this shortly. But what the parameters do is allow you to add multiple fields that captures users information, eg email, name etc. Which you can use later on.

Status: As it says on the tin, its either On or off.

Minimum Confidence score: Upon the user query, the AI will determine if there is an intent that can be searched. The higher the score the more exact it will find the correct intent. If the score is low, it can mean that no intents are found. The default setting at 0.8 we find works well.

Save Result to: If you are capturing user information eg emails, phone numbers etc, all the user data will be saved in a custom field. Which can be used later on.

Trigger Sub Flow: Basically, when the intent is matched or the parameters are captured, where do you want to send the user. 'Which flow'

OK, see how it works using the basic intent. First let's look at the Auto intent detect switch.

The Auto Intent Detect will automatically detect the users intent 'question' this overrides the keyword and default reply features.

With it turned on and a users asks "Hey can you help with XYZ" the AI will understand that the users is asking for support, so the bot will respond accordingly/send them to the support flow automatically.