Skip to content

Commit

Permalink
GITBOOK-145: No subject
Browse files Browse the repository at this point in the history
  • Loading branch information
Ambika Joshi authored and gitbook-bot committed Aug 9, 2024
1 parent 59a7dd5 commit 3003dfc
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 5 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/functions_sqaure_400x400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 25 additions & 5 deletions guides/how-to-use-gooey-functions.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
# 🧩 How to use Gooey Functions?

In this guide, we will look at the steps of creating a functions call on Gooey.AI and adding it to our Gooey.AI workflows. 
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

In this example, we will take the "[Gooey Chat Bot Analysis Script](https://gooey.ai/compare-large-language-models/gooey-bot-chat-analysis-script-27lrilywfzmv/)". This LLM script analyzes the incoming messages to our [Gooey.AI Support Bot](https://gooey.ai/copilot/the-gooeyai-support-bot-3dwfcqvcwl04/) 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. 

<figure><img src="../.gitbook/assets/Screenshot 2024-08-09 at 1.54.11 PM.png" alt=""><figcaption></figcaption></figure>

{% embed url="https://gooey.ai/compare-large-language-models/gooey-bot-chat-analysis-script-27lrilywfzmv/" %}
LINK TO THE LLM ANAYLSIS SCRIPT
{% endembed %}

## How do you add functions to your Gooey workflows?

### **Step 1**

Expand All @@ -27,13 +43,13 @@ async (variables) => {
```
{% endcode %}

**Currently, we have added httpbin for our POST request, you can change this for your preferred API.**
**Currently, we have added httpbin for our POST request, you can change this for your preferred API. You can find more** [**examples here**](https://gooey.ai/functions/examples)**.**

<figure><img src="../.gitbook/assets/Functions Article (1).jpg" alt=""><figcaption></figcaption></figure>
<figure><img src="../.gitbook/assets/hubspot.jpg" alt=""><figcaption></figcaption></figure>

### **Step 3**

Add your relevant variables
Add your relevant variables.&#x20;

<figure><img src="../.gitbook/assets/variables.gif" alt="" width="375"><figcaption></figcaption></figure>

Expand All @@ -59,7 +75,7 @@ Check the Functions, choose “AFTER” and add your Saved example. And then hit

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

<figure><img src="../.gitbook/assets/Screenshot 2024-08-06 at 11.20.55 PM.png" alt=""><figcaption></figcaption></figure>
<figure><img src="../.gitbook/assets/Screenshot 2024-08-09 at 2.02.41 PM (1).png" alt=""><figcaption></figcaption></figure>

### How do I find all the available functions and how can I contribute? <a href="#id-86mplbjxoi5t" id="id-86mplbjxoi5t"></a>

Expand All @@ -70,3 +86,7 @@ All the functions are available here:
Choose any of the Examples and Fork them!

<figure><img src="../.gitbook/assets/examplesection.gif" alt=""><figcaption></figcaption></figure>

### More resources

<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td><h4>Read more about GOOEY.AI functions</h4></td><td><a href="https://app.gitbook.com/s/leYcqBx5FRZcVr3wI4f4/fun-fun-functions">Fun fun functions!</a></td><td><a href="../.gitbook/assets/gooey.ai - cute robot doing javascript vintage p...gazine advertisement muted colorful illustration.png">gooey.ai - cute robot doing javascript vintage p...gazine advertisement muted colorful illustration.png</a></td></tr><tr><td><h4>Connect API to LLM Generator</h4></td><td><a href="https://gooey.ai/compare-large-language-models/functions-make-a-haiku-with-iss-coordinates-k4vuehh6hhvo/">https://gooey.ai/compare-large-language-models/functions-make-a-haiku-with-iss-coordinates-k4vuehh6hhvo/</a></td><td><a href="../.gitbook/assets/gooey.ai - cute robots and aliens shaking hands ...gazine advertisement muted colorful illustration.png">gooey.ai - cute robots and aliens shaking hands ...gazine advertisement muted colorful illustration.png</a></td></tr><tr><td></td><td></td><td></td></tr></tbody></table>

0 comments on commit 3003dfc

Please sign in to comment.