How to use SECRETS in Functions?
Last updated
Last updated
@Dara.network / Gooey.AI / support@gooey.ai
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 in the Accounts Page.
Head over to Gooey.AI Functions
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.
Here process.env.YOUR_API_KEY
calls the secret key from your "Secrets".
Scroll down to the "Secrets" section in the Functions Workflow. Select the API you need for this function to work successfully.
Hit "Run" and Save the function.
NOTE: Before saving the workflow check if your response output is correct.
Add the saved Functions workflow in AI Copilot or other Gooey.AI Workflows.
Learn more about adding SECRETS to your Workspaces here: