BeavBeav

Common creation tasks

Environment variables and scripts

Save service credentials and turn repeated API queries or data processing into reusable scripts.

Ask Beav to save a reusable script for repeated API queries, data processing, or syncing results. Later, run it by naming the script and providing the inputs. No Node.js installation is needed.

Save the environment variables you need first

Open Environment & secrets from the account menu at the bottom left, or from MCP connection settings. Add the variables your service needs: choose Secret for tokens, API keys, and passwords; URLs and project IDs can be plain values. Variables are shared across the app.

Name the required variables when creating a script. It receives only the variables it declares. Do not paste secret values into the chat.

Use them in a single task

You can use variables without saving a script. Describe the task and name the variables:

Use ACME_API_KEY and ACME_API_URL to query today's orders and summarize them by product.
Do not display the key.

Beav's built-in Agent uses enabled variables by name. External Agents can use or read them according to your Not shared, Inject only, or Readable setting. Readable allows access to plain values. Grant Inject only access only to tools you trust: a command can still read or forward the injected value. See Environment & secrets for details.

Create a script

Describe its inputs, steps, output, and where it should be available:

Create a reusable script called “Order Digest”.
Given a date, query that day's orders from the Acme API, summarize quantities and revenue
by product, and return a daily report.
Use ACME_API_KEY and ACME_API_URL. Save it only in the current workspace.

For use across spaces, add “Save it as a personal script available in every workspace.” The current space is the default. Updating a script with the same name changes only the version in that scope.

Run and reuse

Give the script name and inputs in a chat, for example:

Run “Order Digest” for yesterday.

Results return to the chat and can feed into manuscripts or other tasks. State the scope of permission, such as “Query only; do not change orders.” For writes or syncs to another service, identify the destination and what may be changed.

No development environment needed

These scripts use Beav's built-in JavaScript environment. If you need to inspect or edit the code, the available interfaces are:

  • process.env: reads declared environment variables.
  • process.argv: reads the text arguments for this run.
  • beav.fetch({ url, method, headers, body }): makes a synchronous HTTP/HTTPS request; body is a string, and the result includes status, response headers, and body.
  • print(...): returns results to the chat. Do not print secrets.

These scripts do not support require, import, file-system access, subprocesses, external commands, or top-level await.

Update and debug

Ask Beav to update the same-named script when an API or parameter changes. For authentication errors, open Environment & secrets and check that the variable is enabled, its value is valid, and its name matches the script declaration.

Disabling or deleting a variable makes it unavailable to scripts that depend on it. Update those scripts first.