Examples: Functions


Gooey.AI

Javascript Code Interpreter

Loading...

76 runs

Execute arbitrary js code. Great for doing maths, getting access to internet and doing any kind of data analysis and programming

Log and return variables (Response Only)

Loading...

7.51K runs

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

FETCH API: Where is ISS?

Loading...

542 runs

Fetch API for the location of the International Space Station

Log variables

Loading...

164 runs

Save Copilot Data to an External Server Endpoint

Loading...

1.2K 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.

Timezone conversion

Loading...

32 runs

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

Current Weather

Loading...

188 runs

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

CryptoJS Sha256 Hashing example

Loading...

214 runs

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

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

Example POST Request

Loading...

602 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 POST request using the Fetch API and httpbin

Functions Minimal Web Request

Loading...

221 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.