🤖
ZyndraAI help center
  • 😀Welcome to ZyndraAI, a part of Talkie AB
    • ZyndraAI Basic
  • 🏁Getting started
    • Building a Chatbot
    • Chatbot Appearance
      • Custom CSS
    • Testing a Chatbot
    • Publishing your bot
      • Installation using HTML
      • Installation on Facebook
    • Deploying a Chatbot
    • Utility Tools
    • Variables
  • ✨AI-studio
    • Overview
    • Knowledge base
    • Prompts
    • Setting up retrain
    • Function call
    • Custom Answers
  • 💬Live chat
    • Overview
    • Creating views
    • Adding labels
    • Saved replies
    • Settings
  • 🏗️Action blocks
    • Overview
    • Trigger
    • Send Message
    • Collect Input
    • Buttons
    • Carousel
    • Calendar
    • Send an Email
    • Condition
    • Image Carousel
    • Human Handover
    • Slider
    • File Upload
    • Delay
    • Form
    • Flow
    • Jump
    • Codeblock
    • Answer AI
    • Set AI
  • 🏆Integrations
    • Overview
    • HTTP request
    • Hubspot
    • Salesforce
    • Slack
      • Live Chat for Slack
      • Notification for Slack
    • Public APIs
  • 💵Payment and plans
    • Purchasing a plan
    • Payment Methods
    • Initial cost, notice period, commitment period
    • Spent conversations
    • What currency do you charge in?
Powered by GitBook
On this page
  • Creating a function
  • Testing the function
  1. AI-studio

Function call

Execute functions to help your AI generate dynamic answers.

PreviousSetting up retrainNextCustom Answers

Last updated 6 months ago

AIs were limited to answering questions from your static knowledge base.

With function calling, you can have your AI execute Javascript function which invoke third-party APIs to generate a dynamic answer.

Creating a function

First, we create a function form the AI Studio -> Function Call screen

Each function is made up of 3 things:

Prompt

A brief description that helps the AI understand what this function does.

Parameters

The list of parameters that are required for this function to be executed. The parameters need to be provided in the form of a JSON array.

Function handler

This is the Javascript code executed to generate the response to the question asked.

This function would generally consist of

  • API endpoint that is to be invoked

  • Conditions and logic to ask follow-up questions if parameters are missing

Testing the function

On the function, click on 'Save & Run function' to open the test window.

You can customize the LLM model used and see the response generated by it.

Also, to view the exact execution of the function, you can click the 'Show log' to view the entire log.

Here you can view the arguments detected by the function and the output generated by the function.

✨