Examples: Functions

Use this function to Log and return variables from any Gooey.AI workflow.

🛠️

1y ago

7.92K runs

Fetch API for the location of the International Space Station

🛠️

A small guide on how to use python inside the gooey sandbox- execute inline python functions

🛠️

3mo ago

65 runs

Looks up an address and location via Google from a lat/long of partial address as "query" parameter. Returns an object where "formatted_address" is the well-formed address associated with the address query

Call the google search API with your own Serper.dev key and search the web. when using this function, remember to give citation URLs to the content you have used to answer the question

7mo ago

820 runs

sends a slack message to a slack user

🛠️

7mo ago

50 runs

Send a webhook call from Gooey to Zapier and it will create a new Google Docs! Use with our Grant Proposal Writer Agent

What you need to do:

  1. Duplicate this Zap
  2. Copy your unique webhook URL
  3. Save the function in your workspace
  4. Add it to your AI Agent like Grant Proposal Writer

🛠️

Secure Firebase Data Storage with CryptoJS Hashing.

This code snippet demonstrates how to securely store data in Firebase Realtime Database using CryptoJS for hashing sensitive information. Add your own Firebase API Key in the Accounts section.

It includes:

  1. Dynamic import of CryptoJS library
  2. SHA256 hashing of phone numbers
  3. Firebase database integration
  4. Error handling and logging

Perfect for developers looking to implement secure data storage in their Gooey.AI projects. Easily adaptable for various data types and Firebase configurations.

🛠️

Takes lat, long as input and returns a JSON object representing the soil's "nitrogen_total", "phosphorous_extractable", "potassium_extractable", "pH" and "texture_class" using the ISDA Soil API

🛠️

1y ago

106 runs

🛠️

1y ago

9.09K runs

This example collects all the parameters (the user's query, the bot's answer, WhatsApp number number, etc) from the copilot workflow and sends it to an arbitrary endpoint. Alter this example with the REST API of your own server to log every interaction.

🛠️

Converts an ISO date string (with the source timezone provided as an offset) to the specified timezone.

🛠️

2y ago

54 runs

Fetches the current weather given the latitude and longitude of the location using open-meteo api

🛠️

2y ago

290 runs

Use crypto hashing with your copilot to secure your user data!

https://github.com/brix/crypto-js

🛠️

Run sandboxed Javascript functions & API calls inside your AI recipes. Connect the best of AI to your own data, server or any API.

This is a minimal example for how to perform a web POST request using the Fetch API and httpbin

🛠️

2y ago

660 runs

Run sandboxed Javascript functions & API calls inside your AI recipes. Connect the best of AI to your own data, server or any API.

This is a minimal example for how to perform a web request using the Fetch API.

🛠️

2y ago

305 runs