Skip to main content
Every example below is a complete, working tool body. Copy it into the code editor, add the listed parameters and secrets, and save.

HTTP — GET with authentication

Fetch data from a REST API using a Bearer token stored as a secret. Parameters: repo (string, required) Secrets: GITHUB_TOKEN

HTTP — POST with JSON body

Send a JSON payload to an external API. Parameters: to (string, required), subject (string, required), body (string, required) Secrets: SENDGRID_API_KEY

HTTP — Webhook relay

Receive data from the AI and forward it to a webhook endpoint. Parameters: event (string, required), payload (object, required) Secrets: WEBHOOK_URL, WEBHOOK_SECRET

Database — Select with filters

Query a PostgreSQL table with optional filters and return results. Parameters: userId (string, required), status (string, optional) Secrets: DB_HOST, DB_PORT, DB_NAME, DB_USER, DB_PASSWORD

Database — Insert a record

Insert a new row and return the created record. Parameters: name (string, required), email (string, required), role (string, optional) Secrets: DB_HOST, DB_PORT, DB_NAME, DB_USER, DB_PASSWORD

Database — Raw SQL with pagination

Use a raw parameterised query for complex operations with pagination support. Parameters: category (string, required), page (number, optional), pageSize (number, optional) Secrets: DB_HOST, DB_PORT, DB_NAME, DB_USER, DB_PASSWORD

Database — MySQL example

Connect to a MySQL database and run a query. Parameters: email (string, required) Secrets: MYSQL_HOST, MYSQL_PORT, MYSQL_DB, MYSQL_USER, MYSQL_PASSWORD

Lodash — Data transformation

Use sdk.lodash to group, sort, and summarise data. Parameters: userId (string, required) Secrets: DB_HOST, DB_PORT, DB_NAME, DB_USER, DB_PASSWORD

Lodash — Deduplication and filtering

Clean and deduplicate data from an external API. Parameters: query (string, required) Secrets: API_KEY

Combined — API call + database write

Fetch data from an external API and store it in your database. Parameters: repo (string, required) Secrets: GITHUB_TOKEN, DB_HOST, DB_PORT, DB_NAME, DB_USER, DB_PASSWORD

Error handling pattern

A robust pattern for handling multiple failure points. Parameters: userId (string, required) Secrets: API_URL, API_KEY, DB_HOST, DB_PORT, DB_NAME, DB_USER, DB_PASSWORD