> ## Documentation Index
> Fetch the complete documentation index at: https://fromhazel.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Build and Share a Team Recipe

> Turn a good chat with Hazel into a reusable recipe, tighten the instructions, test it with a slash command, then promote it so your whole team can run it.

You just walked Hazel through a real analysis. She landed on the right answer, and you know you'll need this exact breakdown again next month. Right now it only lives in this thread. Instead of re-explaining it from scratch every time, turn it into a recipe once and hand it a slash command.

This tutorial follows a fictional pet supplement brand, **Loyal Paws Co.**, turning a one-off churn analysis into a recipe the whole team can run.

> [!NOTE]
>
> New to recipes? Start with [What are recipes?](https://fromhazel.ai/docs/recipes/recipes-overview.md) for the concepts this tutorial builds on.

## Step 1: Have the conversation worth saving

Loyal Paws Co.'s CX lead asks Hazel a question in chat:

```
Why are customers canceling their subscriptions in the first 60 days,
broken down by acquisition channel?
```

Hazel pulls subscription and order data, segments by channel, and comes back with a clear answer: paid social customers churn almost twice as fast as organic, mostly around the second shipment. A few follow-up questions later, the format is exactly right: the breakdown, the framing, the caveats about excluding gifted subscriptions.

This is the moment to capture it, while the shape of a good answer is fresh.

## Step 2: Ask Hazel to build the recipe

Right in the same thread:

```
Turn this into a recipe
```

Hazel drafts the pieces of a recipe from what you were just discussing: name, slash command, description, category, and the instructions Hazel will follow every time this recipe runs. Then she shows you a card before saving anything. Nothing is created until you approve it.

**1. Review the draft**

Check the slash command Hazel picked (something like `/sub-churn-by-channel`) and the description. That description is what Hazel reads later to decide when to auto-invoke it, so it needs to be specific.

**2. Approve**

Confirm the card. The recipe saves at **Personal** scope, version `v1.0`.

> [!NOTE]
>
> Recipe instructions have a 10,000-character ceiling. Aim well under it: the tightest, most specific instructions perform best. See [Writing great recipes](https://fromhazel.ai/docs/recipes/writing-great-recipes.md) for the patterns that hold up in production.

## Step 3: Tighten the instructions

Hazel's first draft from a chat usually needs a pass before it's ready for the rest of the team. Open it from **Library → Recipes**, on the **Installed** tab, and read through what she wrote, or keep editing right from chat.

With the recipe already invoked in the conversation, tell Hazel what's missing:

```
Update this recipe to exclude gifted and comped subscriptions from the
churn calculation, and default the analysis window to 90 days unless I
say otherwise
```

Hazel replaces the instructions field wholesale rather than appending to it, and bumps the version to `v1.1`. Before she saves, you'll see an approval card the same way you did on creation. Review it and approve before the update takes effect. Repeat this for anything the first draft got vague about: exclusions, defaults, what the output should look like. A recipe that hedges produces hedged answers, so be opinionated about the calls Hazel should make without asking.

> [!TIP]
>
> Editing works the same way once the recipe is shared at Organization scope: any teammate can ask Hazel to update it, and each edit still bumps the version. Agree on an owner for a shared recipe so changes don't collide.

## Step 4: Test it with the slash command

Once the instructions feel right, run the recipe the way your team will:

```
/sub-churn-by-channel for Q1 cohorts
```

Typing `/` opens a palette of every recipe you have access to. Keep typing to filter it down. Hazel's first move on a match is to pull up the recipe's full instructions, then she follows them for the rest of the response.

Try it against a couple of different real questions: a different quarter, a different channel focus, to make sure the instructions hold up outside the exact framing that first prompted them. If something's off, go back to Step 3 and edit again. Recipes are versioned, so there's no cost to a rough first pass.

## Step 5: Promote it to the team

Once the recipe is dialed in, share it so the rest of Loyal Paws Co. gets the tuned version from day one instead of everyone drafting their own:

```
Share /sub-churn-by-channel with my team
```

Hazel shows an approval card confirming which recipe you're promoting. Read it carefully, since **this can't be undone**. Once a recipe moves to Organization scope, it's visible to everyone in the workspace, anyone in your organization can edit or delete it, and it can't be pulled back to Personal.

**1. Review the card**

Confirm the slug and name match the recipe you mean to share.

**2. Approve**

The recipe shows up in every teammate's slash palette right away. Recipes are enabled by default, so there's no separate step to turn it on.

> [!NOTE]
>
> Promoting only works on recipes you own that are still Personal-scoped. If it isn't (or isn't yours), Hazel will tell you instead of promoting it.

From here, any teammate at Loyal Paws Co. can run `/sub-churn-by-channel`, or ask a question close enough that Hazel reaches for it automatically. Any org member can also edit the recipe going forward, so it's worth agreeing on who owns it (see the tip in Step 3).

## What you'll get

By the end of this workflow, Loyal Paws Co. has:

* A one-off churn analysis turned into a repeatable, versioned recipe
* Instructions tightened with explicit exclusions and defaults instead of guesswork
* A tested slash command, `/sub-churn-by-channel`, confirmed against more than one real question
* A shared Organization recipe every teammate can invoke, by command or automatically

***

**Next up:** [Writing great recipes](https://fromhazel.ai/docs/recipes/writing-great-recipes.md) for the instruction patterns that separate a recipe Hazel loves from one she ignores, or [Running recipes](https://fromhazel.ai/docs/recipes/invoking-recipes.md) for more on slash commands vs. automatic invocation.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.