• Gooey.AI
  • Examples: Functions


    Gooey.AI

    Javascript Code Interpreter

    Loading...

    97 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.52K runs

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

    FETCH API: Where is ISS?

    Loading...

    543 runs

    Fetch API for the location of the International Space Station

    Google Search

    Loading...

    178 runs

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

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

    191 runs

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

    CryptoJS Sha256 Hashing example

    Loading...

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

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