Skip to main content

Using Buzz Snippets

Learn how to automate your workflow with Buzz snippets.

Written by Ellen Kajca

Buzz Snippets are reusable automations in your Hive workspace. Each snippet is a saved, versioned script Buzz can run on demand — from chat, from the Snippets settings page, or from an App Workflow.

Use snippets when you need the same multi-step logic to run reliably, with structured input and output, again and again.


What is a Buzz Snippet?

A Buzz Snippet is a workspace automation that:

  • Runs deterministic JavaScript (same inputs → same logic path)

  • Accepts structured input and returns structured output (JSON schemas)

  • Can call Hive tools (update actions, send messages, look up projects, etc.)

  • Can connect to external APIs (HTTP connections) and MCP servers

  • Can send email from Hive, without a connected mailbox (paid plans)

  • Can remember state across runs using snippet memory

  • Has a draft → publish lifecycle so you can test before going live


When should I use a snippet?

Good fits

  • Repeatable workspace automation you want to rerun from chat or wire to a workflow

  • Multi-step logic with branching, validation, or several Hive tool calls

  • Integrations with external systems via HTTP or MCP

  • Automations that need to remember state between runs

  • Anything you’d describe as a “macro,” “script,” or “reusable automation”

Usually not needed

  • One-off tasks (“update this action”)

  • Simple scheduled summaries (App Workflow + Buzz prompt is often enough)

  • One-time file exports

  • Open-ended research

Rule of thumb: If Buzz would need the same long chain of tool calls every time, a snippet is probably the better answer.


How to create a snippet

Most snippets are created in Buzz chat, not by writing code manually.

  1. Open Buzz.

  2. Describe what you want automated. Be specific about:

    • What should happen

    • What inputs the snippet needs (e.g. action IDs, project ID, date range)

    • What it should return

    • Any external systems involved

  3. Ask Buzz to create a Buzz snippet for that workflow.

  4. Buzz will:

    • Write the snippet code

    • Define input/output schemas

    • Dry-run it with sample data

    • Publish it once the dry run succeeds

Example prompts

  • “Create a Buzz snippet that finds all overdue actions in project X and posts a summary to our team group.”

  • “Build a snippet that calls our external CRM API and creates a Hive action from the response.”

  • “Make a reusable snippet that assigns unassigned actions in a project to the project owner.”

New snippets are private by default. You can give specific people editor access or make the published version available to everyone in your workspace. These are separate settings, explained under Sharing below.


How to run a snippet

When you run a snippet from Buzz chat or the Snippets settings page, it uses your permissions. Access to a snippet does not automatically give you access to the Hive data or external connections it uses.

Option 1: Ask Buzz in chat

Open Buzz and say something like:

  • “Run the [snippet name] snippet with action ID abc123.”

  • “Use my overdue-actions snippet for project XYZ.”

Buzz looks up the published snippet, builds input from the schema, runs it, and summarizes the result.

Option 2: Insert from the Tools menu in Buzz

  1. Open Buzz.

  2. Type / to open the command menu.

  3. Choose Tools → Buzz snippets.

  4. Select Run snippet: [name].

  5. Send the message. Buzz runs the snippet using the published version.

Only published snippets appear in this menu.

Option 3: Run from an App Workflow

Add a Run snippet step to an App Workflow so the snippet runs automatically when the workflow trigger fires (e.g. action completed, schedule, form submitted).

  1. Open App Workflows.

  2. Create or edit a workflow.

  3. Add a step: Run snippet.

  4. Select a published snippet.

  5. Save and enable the workflow.

The workflow passes trigger data into the snippet as input.

Use action attachments in a button-triggered snippet

A snippet run from a Button clicked App Workflow can read eligible files attached directly to the triggering action, without manually mapping every attachment as a file input.

  1. Attach the file to the action you want the workflow to process.

  2. Use a published snippet that is written to read the triggering action’s attachments. For example, ask Buzz to build a snippet that reads the spreadsheet attached to the action and summarizes its contents.

  3. Configure a Button clicked workflow with a Run snippet operation. Select the snippet and provide any inputs required by its schema.

  4. Save and enable the workflow, then use its button on a test action. Check the workflow run and snippet result.

Making attachments available does not make every snippet process them automatically. The snippet’s logic must read and use the files.

File access and missing attachments

  • Automatic attachment access respects file permissions. Eligible Hive file attachments must be readable by the account running the operation and no larger than 50 MiB per file. An external link is not automatically downloaded as a file attachment.

  • Unreadable or ineligible automatic attachments are skipped. If the snippet needs a file to complete its task, it should check that the file is available and explain what is missing.

  • Files explicitly mapped as required inputs remain required. If one is missing or inaccessible, the run fails rather than silently skipping it.


Manage snippets in settings

Path: Profile menu (avatar) → Workspace → Settings → AI → Snippets

The list shows snippets you own, snippets shared with you as an editor, and published snippets made available to your workspace. Click a snippet to open it.

At the top of the snippet page, you see:

  • The snippet name, its published version (for example v3 published), any open draft (for example v4 draft), and the snippet ID with a copy button.

  • Test snippet, to run a test or the published version. See Test a snippet below.

  • Edit with Buzz, to change the snippet in Buzz chat. This shows only if you own the snippet or have editor access.

  • The ⋯ menu, with Copy snippet ID and, if you have editor access, Delete snippet.

The What it does card tells you what the snippet does in plain words:

  • Needs — the input fields.

  • Gives back — the output fields.

  • Uses — the Hive tools, API connections, and MCP servers that it uses.

  • Changes — the tools and API connections that can change data. An API connection shows here if it can send a request other than a read (GET).

Click the arrow on the card to hide or show it.

Below the card are six tabs: Flow, Runs and tests, Error logs, Workflows, Versions, and Sharing.

If you own the snippet or have editor access, you can also see drafts and older versions, test changes, publish, manage sharing, and delete the snippet.

Read the flow

The Flow tab shows the steps of the snippet from top to bottom. Each step has a number and a type, for example Input, Hive read, Hive write, HTTP, AI, Decision, or Output. When the snippet can go two ways, the paths split and the steps get letters, for example 4a and 4b.

The panel on the right has two tabs:

  • Steps — a short description of what each step does. Click a step in the flow or in the list to find it in the other.

  • Runs and tests — your latest runs and tests, and New test. See Test a snippet below.

To make the panel wider or narrower, drag its left edge. To hide the panel, click Hide rail. Click Show rail to show it again.

To see the flow of an older version, open the Versions tab and click View in flow on that version.

The flow only shows the snippet. It does not edit or run it.

Test a snippet

  1. Open the snippet. If you have editor access and want to test an older version or a draft, open the Versions tab and click View in flow on that version.

  2. Click Test snippet. The New test panel opens on the right.

  3. On the Input tab, enter a JSON object that matches the snippet's input. To see the input and output fields, open the Schemas tab. You can also:

    • Click Suggest input to let Buzz write a sample input.

    • Click Use input from a workflow run and pick a recent run of a workflow that uses this snippet. Its input fills the box. You can use this for tests only.

  4. Click Run test.

A test uses live data and your access. Reads are real. Writes, such as Hive changes, HTTP requests other than GET, and memory writes, are simulated. AI calls use credits.

After the test, the result shows below the buttons. Click Replay on flow to see which steps ran. Each test is saved on the Runs and tests tab.

Run the published version: if you have editor access, select the published version and turn on Live run. The button changes to Run published version. Members with workspace access only always run the published version.

A live run makes the real changes that the snippet does, such as updating actions or sending messages. Review the input before you run it.

Only the snippet owner and editors can test drafts and changes. Workspace access alone does not allow tests or access to drafts.

Inspect runs and errors

When you open a snippet in Workspace settings → AI → Snippets, these tabs help you check its runs:

  • Runs and tests lists past runs and saved tests in one list.

  • Error logs lists runs that failed or timed out.

  • Workflows lists the workflows that use the snippet.

Check failed runs in Error logs

Each row shows the snippet, the status, what started the run (Trigger), the error message, and the time. Select a row to see the input the run received, the error, any output, and the logs. Click Open snippet to go to the snippet, or View connected workflows to see the workflows that use it. Tests do not show in Error logs.

Review past runs

  1. Open the Runs and tests tab. It lists runs and tests together, with the newest first. Each row shows the result, the start time, the type (Run or Test), the version, where it started (Started from), and the duration.

  2. To see only one type, use the filter above the list: All, Runs, or Tests.

  3. Click a row to open it. The run shows on the full page with the snippet's flow, its version, duration, and number of calls. Click a step to see its details on the right. Whole run shows the input and the output of the run.

  4. Click ← All runs to go back to the list.

To share a run, click Copy link. To see the run on the Flow tab, click Replay on flow.

You can also see your five latest runs and tests on the Flow tab, in the Runs and tests panel on the right. Click View all runs and tests to open the full list.

If you cannot edit the snippet, you see only your own runs and tests.

Inspect a saved test

Each test is saved. This includes tests that Buzz ran for you while it built or changed the snippet.

  1. On the Runs and tests tab, select Tests in the filter, or keep All.

  2. Click the test's row.

  3. In the flow, each step that the test reached shows its result, for example Completed or Failed. A decision shows how it went, for example Yes or No. Did not run means Hive confirmed that the step did not run. If a step has no result shown, Hive may not have enough recorded information to show what happened. Check the test’s input, output and recorded calls for more detail. If you see “The recorded trace is incomplete,” some details are unavailable.

  4. Click a step to see its details on the right: each call that the step made, with its input and output. Recorded means the call really ran. Simulated means the test did not make the change.

If a call failed during the test, the failures show at the top. If the flow for that version is not available, the page still shows the saved input, output, and calls.

The details of a saved test are available to the person who ran it, the snippet owner, and workspace admins. A test that used private sample data is visible only to the person who ran it.

See where a run came from

The Started from column (Trigger in Error logs) shows what started each run:

  • Workflow — a workflow ran the snippet. Click the workflow name to open it.

  • Chat — someone ran it from Buzz chat or from the snippet page.

  • API — it was run through the API.

  • Test — a saved test.

  • Origin not recorded — Hive has no record of the origin.

In Error logs, (unconfirmed) after the origin means the run reported this origin, but Hive could not confirm it.

If you can view the snippet's code, a Line link can also show. It opens the code at the line where the run stopped. People who cannot view the code do not see this link.

See the workflows that use a snippet

The Workflows tab lists each workflow that uses the snippet. Click Open workflow to edit it. If you can view that workflow's run history, click View runs to open this snippet's Runs and tests tab.

Sharing

You can make a snippet available for your workspace to use and separately choose who can edit it. Open the snippet in Snippets settings and click the Sharing tab to manage these options.

Let your workspace view and run a snippet

Turn on Available to everyone in this workspace to let workspace members find, view, and run the snippet’s current published version using their own permissions.

This setting does not grant editor access. Members who only have workspace access cannot view drafts or older versions, dry-run changes, publish, disable, delete, or change sharing. They can see their own run results, but not other people’s run history.

The snippet must have a published version before it becomes available to other workspace members through this setting.

Choose who can edit

Under Editors, choose:

Setting

What it allows

Only creator

Keeps editing limited to the snippet owner.

Specific people

Gives the selected people editor access alongside the owner.

Editors can run published versions, edit drafts, dry-run changes, publish, disable or delete the snippet, and change who has access. Choose collaborators who should be able to manage the automation.

To add or change editors, select Specific people, choose the people, and close the people picker. Review the Update snippet access? dialog, then click Update access to save.

Removing someone’s access may stop workflows they own that depend on the snippet. If Available to everyone in this workspace remains on, removing someone as an editor still leaves them able to view and run the published version as a workspace member.

Shared snippet memory

Snippet memory is shared across runs of the same snippet. It is not a separate memory for each person who runs it. Information saved by one run can be used by later runs, including runs started by other people.

Delete a snippet

To delete the entire snippet, you must own it or have editor access. To remove only its unpublished changes, use the Delete a draft version instructions below.

  1. Select one or more snippets (checkbox).

  2. Click Delete.

Deleted snippets disappear from settings and from the Buzz Tools menu.


Drafts, versions, and publishing

Every snippet has versions:

Status

Meaning

Draft

Work in progress. The owner and editors can view and dry-run it. Workspace access alone does not give access to drafts.

Published

Live version. Runnable from chat, Tools menu, and workflows.

Superseded

Previously published version turned off.

Typical flow

  1. Buzz creates a draft.

  2. Buzz dry-runs with realistic input.

  3. After a successful dry run, Buzz publishes.

  4. Further edits create a new draft version; publish again when ready.

If you own the snippet or have editor access, ask Buzz: “Update the [snippet name] snippet to also …” Buzz edits the draft, dry-runs, and republishes when ready.

Delete a draft version

You can permanently delete a snippet’s latest draft from its version history. You must be the snippet’s original creator and still have access to it. Editor access alone does not allow you to delete an individual draft version.

  1. Open Workspace settings → AI → Snippets and select the snippet.

  2. Open the Versions tab and find the latest version marked draft.

  3. Hover over that version’s row and click the trash icon, labelled Delete draft version followed by the version number.

  4. Review the Delete draft version? confirmation, then select Delete.

If a published version exists: Only the draft is deleted. The published version is not changed, and it becomes the selected version.

If there is no published version: Deleting the draft also removes the snippet. The confirmation warns you before you proceed.

This control is available only for the latest draft. It does not delete published versions or older versions.


Send email from a snippet

A snippet can send email through Hive. You do not need to connect a Gmail or Outlook mailbox. Use this for emails that a snippet or workflow sends again and again, for example a notice to a client when an action is done.

Set it up

  1. Open Buzz. To change a snippet that you have, open it in Snippets settings and click Edit with Buzz.

  2. Tell Buzz what the email must contain and who gets it. Say “send the email from Hive.” If you do not, Buzz can send the email from your connected mailbox instead. For example: “Create a snippet that emails a list of the open actions in Project X to anna@example.com every time it runs. Send the email from Hive and set the reply-to address to my email.”

  3. Buzz adds the email step and tests the snippet. The test does not send the email. Buzz can ask you to approve the test first. When the test succeeds, Buzz publishes the snippet.

On the snippet page, the What it does card shows the email step under Uses and Changes.

What the recipient sees

  • The email comes from Hive (updates@notifications.hive.com).

  • Replies go to the reply-to address that the snippet sets. Ask Buzz to set one, for example your own email address. If the snippet sets no reply-to address, replies do not come to you.

  • The body can be plain text or formatted text. You cannot attach files.

  • One email can go to up to 50 recipients in total (To, Cc, and Bcc together).

Rules and limits

  • Paid plans only. A workspace on a free trial cannot send email from a snippet. The run stops with an error at the email step.

  • Tests do not send email. A test (dry run) simulates the email, and the step shows as Simulated. The test still checks the recipients, subject, and body. If an address is not valid, the test fails with “Provide a subject, a body, and valid email addresses for up to 50 recipients.”

  • Live runs send email. A run of the published version sends the email: from Buzz chat, the Tools menu, Live run on the snippet page, or a workflow.

  • Up to 100 emails per minute for each workspace. If your workspace goes above this, the email step fails. Wait one minute, then run the snippet again.

  • Run history does not show the email. For privacy, the details of a run or test do not show the recipients or the content of the email.

  • Buzz chat cannot send email from Hive. Only a snippet can. When you ask Buzz in chat to send an email, Buzz sends it from your connected Gmail or Outlook mailbox, and you approve each email.

Send from Hive or from your mailbox?

From Hive

From your connected mailbox

Sender

Your Gmail or Outlook address. For a workflow, the workflow owner's address.

You need

A paid plan

A connected Gmail or Outlook mailbox

Replies go to

The reply-to address that the snippet sets

The sender's mailbox

Good for

Notices and updates that must not depend on one person's mailbox

Emails that must come from a real person


External connections (HTTP, MCP & SFTP)

Snippets that call outside Hive need connections set up first.

Path: Profile menu (avatar) → Workspace → Settings → AI → Connections & access

  • API Connections — REST APIs (headers, OAuth, or session login) and SFTP connections for snippets

  • MCP Connections — Model Context Protocol tools

When Buzz builds a snippet that uses an outside service, it attaches those connections to the snippet version. The snippet can use only connections that are turned on and that the person who runs it can use. For a workflow, this is the workflow owner. If a connection uses OAuth, its owner must complete the sign-in in Connections & access before the snippet can run.

Read files from an SFTP server

Under API Connections, choose SFTP (Buzz snippets) as the authentication type. Then ask Buzz to build a snippet that lists a remote folder or reads a file using that connection. SFTP access is read-only, with a 30 MB per file limit; dry runs perform real reads. See Connect an SFTP server for snippets for the server address, credentials, and fingerprint setup.


Snippets vs slash commands vs workflows

Buzz Snippet

Slash command

App Workflow + Buzz prompt

What it is

Versioned code automation

Saved Buzz instructions

Trigger + AI step

Best for

Deterministic, repeatable logic

Quick reusable prompts

Scheduled/event-driven AI tasks

External APIs

Yes (HTTP/MCP)

Via Buzz tools inline

Via Buzz tools inline

Strict input/output

Yes (JSON schemas)

No

No

Runs in workflow

Yes (Run snippet)

No

Yes (Buzz step)


Quick reference

Here's the breakdown of where, when and how to use snippets:

Task

How

Create snippet

Ask Buzz in chat

Run snippet

Ask Buzz, or / → Tools → Buzz snippets

View/manage

Workspace settings → AI → Snippets

Set up connections

Workspace settings → AI → Connections & access

Send email without a mailbox

Ask Buzz to send it from Hive (paid plans)

Automate on trigger

App Workflow → Run snippet

Share with team

Snippets settings → Available to everyone in this workspace for published access; Editors for editing access (owner or editor required)


Need help building a specific automation? Open Buzz, describe the workflow end to end, and ask Buzz to create and publish a snippet for you.

Did this answer your question?