LogoLogo
HomeExploreDocsAPIBlogContact
  • 🗃️Gooey.AI Docs
  • Changelog
  • 📖Guides
    • 🤖How to build an AI Copilot?
      • AI Prompting: Best practices
      • Curate your Knowledge Base Documents
      • Advanced Settings
      • Prepare Synthetic Data
      • Conversation Analysis
        • Glossary
      • Building a Multi-Modal Copilot
      • Frequently Asked Questions about AI Copilot
      • How to Automate Data Export?
    • 🚀How to deploy an AI Copilot?
      • Deploy to Web
      • Deploy to WhatsApp
      • Deploy to Slack
      • Deploy to Facebook
      • Broadcast Messages (via web or API)
      • Add buttons to your Copilot
    • ⚖️Understanding Bulk Runner and Evaluation
      • 💪How to set up Bulk Runner?
      • 🕵️‍♀️How to set up Evaluations?
      • How to use Bulk Run via API
    • 👄How to use AI Lip Sync Generator?
      • Lip Sync Animation Generator (WITH AUDIO FILES)
      • LipSync videos with Custom Voices
      • Set up your API for Lipsync with Local Folders
      • Tips to create great HD lipsync output
      • Frequently Asked Questions about Lipsync
    • 🗣️How to use ASR?
      • 📊How to create language evaluation for ASR?
    • How to use Compare AI Translations?
      • Google Translate Glossary
    • How does RAG-based document search work?
    • 🧩How to use Gooey Functions?
      • ✨LLM-enabled Functions
      • How to use SECRETS in Functions?
      • 🔥How to connect FirebaseDB to Copilot
    • 🎞️How to create AI Animations?
    • 🤳How to make amazing AI Art QR Codes?
      • API tips on AI Art QR Codes
    • 🖼️Create an AI Image with text
      • AI Image Prompting
      • API Tips for AI Image Generator
    • 📸AI Photo Editor
      • Build your avatar with AI
    • 🧑‍🏫How to use Gooey.AI’s Image Model Trainer?
    • 🔍Generate “People Also Ask” SEO Content
    • 🌐How to create SEO-Optimized content with AI?
    • How to use Workspaces?
      • How to use Version History?
      • How to add SECRETS in your Workspace?
    • 🍟How can I get free credits?
  • 😇CONTRIBUTING
    • Contributing
    • Documentation Style Guide
  • 🤓API REFERENCE
    • Getting started
    • API Generator
    • Rate Limits
    • Error Codes
  • 🍭ENDPOINTS
    • Copilot
    • Lipsync
    • Lipsync TTS
    • AI Art QR Generator
    • AI Animation Generator
    • Compare AI Image Generator
    • Gooey.AI on GitHub
Powered by GitBook
LogoLogo

Home

  • Gooey.AI
  • Explore Workflows
  • Sign In
  • Pricing

Learn

  • Docs
  • Blog
  • FAQs
  • Videos

Developers

  • How-to Guides
  • Get your Gooey.AI Key
  • Github
  • API Endpoints

Connect

  • Book a Demo
  • Discord
  • Team
  • Jobs

@Dara.network / Gooey.AI / support@gooey.ai

On this page
  • Scenario
  • How do you add functions to your Gooey workflows?
  • Step 1
  • Step 2
  • Step 3
  • Step 4
  • Step 5
  • How do I find all the available functions and how can I contribute?
  • More resources

Was this helpful?

Edit on GitHub
  1. Guides

How to use Gooey Functions?

Last updated 9 months ago

Was this helpful?

In this guide, we will learn how to create a functions call on Gooey.AI and add it to our Gooey.AI workflows.

We'll take the example of our Copilot Analysis Scripts. All copilots have an integrated LLM script to analyze various user data. This could be user location, question category, user sentiment, etc. Once you have the data, you might want to push it to your servers, or database, or combine it with your other services.

Scenario

We will take the "Gooey Chat Bot Analysis Script" in this example. This LLM script analyzes the incoming messages to our and categorizes the user's query into buckets like API Usage, Pricing, Sales, etc.

We want to push this output to our CRM so we get deeper analytics which helps us respond better to our customers.

How do you add functions to your Gooey workflows?

Step 1

Step 2

Create your POST Request with AFTER Function:

Here is a basic fetch call, you can copy or edit this code as per your needs, and paste it in the code editor on the Functions workflow.

A basic fetch call
async (variables) => {
  const res = await fetch("https://httpbin.org/post", {
    method: "POST",
    body: JSON.stringify(variables),
    headers: {
      "Content-Type": "application/json",
    },
  });
  return { response: await res.json() };
};

Step 3

Add your relevant variables.

Step 4

Hit Submit, if your code is working fine you will get your outputs on the right side. Use the “Save as New” button and update the run name.

Step 5

Now head over to the Gooey workflow where you want to add the saved functions.

Head over to the example below:

Check the Functions, choose “AFTER” and add your Saved example. And then hit "SUBMIT!

You can check your Functions output in the Workflow at the end of the page in "Details" section.

How do I find all the available functions and how can I contribute?

All the functions are available here:

Choose any of the Examples and Fork them!

More resources

Head over the

Currently, we have added httpbin for our POST request, you can change this for your preferred API. You can find more

📖
🧩
Functions workflow
examples here

Gooey.AI Support Bot
LogoGooey Bot Chat Analysis Script • LLM by Computational Mama aka Ambika • Gooey.AI
LINK TO THE LLM ANAYLSIS SCRIPT
LogoGooey Bot Chat Analysis Script • LLM by Computational Mama aka Ambika • Gooey.AI
LogoExamples: Functions - JavaScript in your AI Recipes • Gooey.AI
Gooey Support Bot's Analysis script, on the left is the LLM prompt with the incoming message and on the right is the category output
Functions workflow with the code editor to the left
Cover

Connect API to LLM Generator

Cover

Read more about GOOEY.AI functions