diff --git "a/.gitbook/assets/Screenshot 2024-08-09 at 9.58.52\342\200\257PM.png" "b/.gitbook/assets/Screenshot 2024-08-09 at 9.58.52\342\200\257PM.png" new file mode 100644 index 0000000..57cd1ee Binary files /dev/null and "b/.gitbook/assets/Screenshot 2024-08-09 at 9.58.52\342\200\257PM.png" differ diff --git a/guides/how-to-use-gooey-functions.md b/guides/how-to-use-gooey-functions.md index 30b18b2..85a9807 100644 --- a/guides/how-to-use-gooey-functions.md +++ b/guides/how-to-use-gooey-functions.md @@ -6,11 +6,13 @@ We'll take the example of our Copilot Analysis Scripts. All copilots have an int ### 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 will take the "Gooey Chat Bot Analysis Script" in this example. 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. -
+
+ +

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

{% embed url="https://gooey.ai/compare-large-language-models/gooey-bot-chat-analysis-script-27lrilywfzmv/" %} LINK TO THE LLM ANAYLSIS SCRIPT @@ -22,12 +24,14 @@ LINK TO THE LLM ANAYLSIS SCRIPT Head over the [Functions workflow](https://gooey.ai/functions/) -
- ### **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. + +**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) + {% code title="A basic fetch call" lineNumbers="true" %} ```javascript async (variables) => { @@ -43,9 +47,7 @@ async (variables) => { ``` {% endcode %} -**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)**.** - -
+

Functions workflow with the code editor to the left

### **Step 3** @@ -55,7 +57,7 @@ Add your relevant variables. ### **Step 4** -Hit Submit, if your code is working fine. Use the “Save as New” button and update the run name. +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.