Skip to content

Commit

Permalink
GITBOOK-201: No subject
Browse files Browse the repository at this point in the history
  • Loading branch information
Ambika Joshi authored and gitbook-bot committed Jan 6, 2025
1 parent 6ffe804 commit 9c02188
Show file tree
Hide file tree
Showing 17 changed files with 168 additions and 0 deletions.
Binary file added .gitbook/assets/0 (12).png
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/1 (11).png
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/2 (8).png
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/3 (7).png
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/4 (6).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.
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.
6 changes: 6 additions & 0 deletions SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
* [How does RAG-based document search work?](guides/how-does-rag-based-document-search-work.md)
* [🧩 How to use Gooey Functions?](guides/how-to-use-gooey-functions/README.md)
* [✨ LLM-enabled Functions](guides/how-to-use-gooey-functions/llm-enabled-functions.md)
* [How to use SECRETS in Functions?](guides/how-to-use-gooey-functions/how-to-use-secrets-in-functions.md)
* [Frequently Asked Questions about Functions](guides/how-to-use-gooey-functions/frequently-asked-questions-about-functions.md)
* [🎞️ How to create AI Animations?](guides/how-to-create-ai-animations.md)
* [🤳 How to make amazing AI Art QR Codes?](guides/how-to-make-amazing-ai-art-qr-codes/README.md)
* [API tips on AI Art QR Codes](guides/how-to-make-amazing-ai-art-qr-codes/api-tips-on-ai-art-qr-codes.md)
Expand All @@ -46,6 +48,10 @@
* [Build your avatar with AI](guides/ai-photo-editor/build-your-avatar-with-ai.md)
* [🔍 Generate “People Also Ask” SEO Content](guides/generate-people-also-ask-seo-content.md)
* [🌐 How to create SEO-Optimized content with AI?](guides/how-to-create-seo-optimized-content-with-ai.md)
* [How to use Workspaces?](guides/how-to-use-workspaces/README.md)
* [How to use Version History?](guides/how-to-use-workspaces/how-to-use-version-history.md)
* [How to add SECRETS in your Workspace?](guides/how-to-use-workspaces/how-to-add-secrets-in-your-workspace.md)
* [Frequently Asked Questions about Workspaces](guides/how-to-use-workspaces/frequently-asked-questions-about-workspaces.md)

## 😇 CONTRIBUTING

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
hidden: true
icon: message-question
---

# Frequently Asked Questions about Functions

Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
icon: key-skeleton
---

# How to use SECRETS in Functions?

Our main aim with Functions is to allow users to chain API calls and connect their other services to Gooey.AI's workflows. Several services like Supabase, Firebase and more require their own API keys. Now you can store them in your [API Keys tab](https://gooey.ai/account/api-keys/) in the Accounts Page. 

### Step 1

Head over to [Gooey.AI Functions](https://gooey.ai/functions)

### **Step 2**

Set up your API call. In this example, we'll create an API call to Open Weather Map, so that it can share real-time weather stats with the user. 

```javascript
async ({ city_name }) => {
const API_KEY = process.env.YOUR_API_KEY;
if (!API_KEY) throw new Error("API key not found in environment variables.");
const encodedCityName = encodeURIComponent(city_name);
const response = await fetch(`https://api.openweathermap.org/data/2.5/weather?q=${encodedCityName}&appid=${API_KEY}&units=metric`);
if (!response.ok) throw new Error(`Error ${response.status}: ${response.statusText}`);
return { weather_data: await response.json() };
};
```

Here `process.env.YOUR_API_KEY` calls the secret key from your "Secrets". 

### Step 3

Scroll down to the "Secrets" section in the Functions Workflow. Select the API you need for this function to work successfully.  

<figure><img src="../../.gitbook/assets/Screen Recording 2025-01-06 at 3.00.32 PM processed.gif" alt=""><figcaption></figcaption></figure>

### Step 4

Hit "Run" and Save the function.&#x20;

{% hint style="info" %}
NOTE: Before saving the workflow check if your response output is correct.
{% endhint %}

### Step 5

Add the saved Functions workflow in AI Copilot or other Gooey.AI Workflows.&#x20;

<figure><img src="../../.gitbook/assets/Screen Recording 2025-01-06 at 3.15.23 PM processed.gif" alt=""><figcaption></figcaption></figure>

\---

Learn more about adding SECRETS to your Workspaces here:

{% embed url="https://app.gitbook.com/o/9jeaMLKaFVy0VbGEfODs/s/5BFP5RUm6rTLXk8wUSTf/~/changes/201/guides/how-to-use-workspaces/how-to-add-secrets-in-your-workspace" %}

37 changes: 37 additions & 0 deletions guides/how-to-use-workspaces/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
icon: users-medical
---

# How to use Workspaces?

With Workspaces, you will be able to:

1. Collaborate on saved workflows
2. Access the [Version History](how-to-use-version-history.md) of saved workflows (with comments and the ability to revert to the previous version)
3. Share payment methods (so you can cover the Gooey usage cost for your team members)
4. Assign roles and access levels for team members&#x20;
5. Shared API secrets (to securely access private APIs)
6. Manage multiple teams independently, each with their own billing details and saved workflows

### How do I get started with Gooey.AI Workspaces?

* Start by heading over to your [Gooey.AI Profile Page](https://gooey.ai/account/profile/)
* Click on the drop-down menu on the top right
* Click on “Create New Workspace”
* The page for the new Workspace will be created. You can “edit” the name and other details by clicking on the “Edit” button. And you can buy credits by clicking on “Upgrade”

![](<../../.gitbook/assets/0 (12).png>)

* You can also invite new members and assign them roles

<figure><img src="../../.gitbook/assets/1 (11).png" alt=""><figcaption></figcaption></figure>

* All the details for your Workspace are available in the various tabs on the top -
* Members - Total credits remaining in the Workspace, details of your chosen plan, list of all your members and their roles,
* Saved - All the Saved workflows in your Workspace
* API Keys - Keys that are dedicated to this specific Workspace
* Billing

### How can I activate Workspaces in Gooey.AI? <a href="#lnsbsam44owq" id="lnsbsam44owq"></a>

If you are interested in using Workspaces with your team or collaborators please connect with us on [sales@gooey.ai](mailto:sales@gooey.ai).
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
icon: message-question
---

# Frequently Asked Questions about Workspaces

Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
icon: key-skeleton
---

# How to add SECRETS in your Workspace?

### Step 1

Go to the [API tab in the Account Page](https://gooey.ai/account/api-keys/)

### Step 2

Scroll down to the "Secrets" Section

<figure><img src="../../.gitbook/assets/Screenshot 2025-01-06 at 1.26.57 PM.png" alt=""><figcaption></figcaption></figure>

### Step 3

Add Variable Name for the API and the API key&#x20;

<figure><img src="../../.gitbook/assets/Screenshot 2025-01-06 at 1.30.12 PM.png" alt=""><figcaption></figcaption></figure>

### Step 4

Access API key as a variable in the [Functions Workflow](https://gooey.ai/functions)

<figure><img src="../../.gitbook/assets/Screenshot 2025-01-06 at 1.34.19 PM.png" alt=""><figcaption></figcaption></figure>

READ MORE ABOUT USE SECRETS in FUNCTIONS here:

{% embed url="https://docs.gooey.ai/guides/how-to-use-gooey-functions/how-to-add-secrets-in-functions" %}

25 changes: 25 additions & 0 deletions guides/how-to-use-workspaces/how-to-use-version-history.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
icon: code-fork
---

# How to use Version History?

If you want to revert to a past version of your AI Workflow, you can use our version history tool in Workspaces.

This is useful if:

* You realize that your newly “Saved” workflow is failing or not successful
* You accidentally clicked “Update” and your Workflow wasn’t ready or was incomplete
* You want to use the previous version of an AI Workflow and “fork” it

#### Step 1: Click on the “Options” button on the top right as circled here in red. <a href="#id-3sl778mlih78" id="id-3sl778mlih78"></a>

![](<../../.gitbook/assets/2 (8).png>)

#### Step 2: Click on the version that you want to revert/update to <a href="#id-82g02dybd0vt" id="id-82g02dybd0vt"></a>

<figure><img src="../../.gitbook/assets/3 (7).png" alt=""><figcaption></figcaption></figure>

#### Step 3: Make your changes and click the “Update” button <a href="#so12tkc7vb9k" id="so12tkc7vb9k"></a>

![](<../../.gitbook/assets/4 (6).png>)

0 comments on commit 9c02188

Please sign in to comment.