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

# goody_autogift_rules_create

> Create a paused autogift rule — clone a past gift or build one from scratch.

**Permission:** `Send gifts` · **Workspace:** required (from `goody_workspaces_list`)

Creates a **paused** autogift rule — a recurring gift that sends automatically when a recipient hits a birthday, work anniversary, or onboarding milestone.

There are two ways to supply the gift contents — pick exactly one:

* **(A) Clone** a recently-sent gift batch with `source_order_batch_id`. The cart, card, message, From name, payment method, and shipping are all pulled from that batch.
* **(B) Build from scratch** (no prior send) — a cart plus `card_id`, `message`, and `payment_method_id`.

> [!NOTE]
>
> The rule is created **paused**. Call [`goody_autogift_rules_activate`](https://developer.ongoody.com/mcp-reference/tools/autogift-rules-activate) once the user confirms — activation is what commits the recurring spend.

## Parameters

### Required

**workspace\_id** `string` *required*

Workspace UUID — from `goody_workspaces_list`. The rule is created in this workspace.

**event\_type** `string` *required*

The occasion that triggers a send — one of `birthday`, `work_anniversary`, or `onboarding`.

**contact\_list\_id** `string`

An existing contact list — from [`goody_contact_lists_list`](https://developer.ongoody.com/mcp-reference/tools/contact-lists-list) or [`goody_contact_lists_create`](https://developer.ongoody.com/mcp-reference/tools/contact-lists-create). Mutually exclusive with `contact_ids`; supply exactly one.

**contact\_ids** `string[]`

Contact UUIDs to gift. The tool creates an implicit list from them. Mutually exclusive with `contact_list_id`; supply exactly one.

**source\_order\_batch\_id** `string`

The gift batch to clone, from [`goody_order_batches_list`](https://developer.ongoody.com/mcp-reference/tools/order-batches-list). Mutually exclusive with a from-scratch cart; supply exactly one.

### From-scratch path

Supply these instead of `source_order_batch_id` to build the gift without a prior send.

**product\_id** `string`

A single product to gift, from [`goody_products_search`](https://developer.ongoody.com/mcp-reference/tools/products-search). Use this or `cart`.

**alongside product\_id**

**quantity** `integer`

How many of the product to include.

**variable\_price** `integer`

Funded amount in cents, for a Gift of Choice.

**cart** `object`

Multiple products to gift. Use this or `product_id`.

**cart**

**items** `object[]`

Each item names a `product_id` and optional `quantity` / `variable_price`.

**card\_id** `string`

Greeting card UUID — from [`goody_cards_list`](https://developer.ongoody.com/mcp-reference/tools/cards-list).

**message** `string`

The gift-card message. Personalization tags (e.g. the recipient's first name) are filled per-recipient at send time.

**from\_name** `string`

The "From" name recipients see. Defaults to the authenticated user.

**payment\_method\_id** `string`

The autopay payment method the rule charges on activation — from [`goody_payment_methods_list`](https://developer.ongoody.com/mcp-reference/tools/payment-methods-list). Recommended. Without it the rule is created but won't activate.

**international\_shipping\_tier** `string`

Shipping tier to apply for recipients outside the US.

**alcohol\_age\_verification\_attested** `boolean`

Required `true` when the cart contains alcohol.

**settings** `object`

Rule settings.

**settings**

**gift\_cards\_enabled** `boolean`

Set `true` to include international gift cards.

### Optional (both paths)

**tenure\_min** `integer`

Lowest years of service the rule applies to. Meaningful for `work_anniversary`.

**tenure\_max** `integer`

Highest years of service the rule applies to. Meaningful for `work_anniversary`.

**anchor\_date\_send\_option** `string`

When to send relative to the occasion — `send_on_anchor_date`, `send_before_anchor_date`, or `send_after_anchor_date`.

**anchor\_date\_number\_of\_days\_delta** `integer`

How many days before or after the occasion to send. Required when the send option is before or after.

**anchor\_date\_type** `string`

Which date the occasion anchors to — `start_date` or `added_to_hris_date`. Only for `onboarding`.

**allow\_occasion\_mismatch** `boolean` (default: false)

Clone path only. When the source card's occasion doesn't match the event type, the request is rejected; set `true` to override.

## Returns

**autogift\_rule** `object`

The newly created, paused rule.

**autogift\_rule**

**id** `string`

Rule UUID — pass to [`goody_autogift_rules_preview`](https://developer.ongoody.com/mcp-reference/tools/autogift-rules-preview) or [`goody_autogift_rules_activate`](https://developer.ongoody.com/mcp-reference/tools/autogift-rules-activate).

**status** `string`

Always `paused` on creation.

**event\_type** `string`

The occasion that triggers a send.

**contact\_list\_id** `string`

The contact list the rule watches.

**card\_id** `string | null`

The greeting card chosen for the rule.

**message** `string | null`

The gift-card message template.

**from\_name** `string | null`

The "From" name recipients see.

## Example

```text 💬 Prompt theme={null}
"Set up a $50 birthday autogift for my Clients list with the Cold Brew Kit and a birthday card."
```

```json 🔧 Tool call theme={null}
{
  "name": "goody_autogift_rules_create",
  "arguments": {
    "workspace_id": "3f8a…",
    "event_type": "birthday",
    "contact_list_id": "d052…",
    "product_id": "0f3c…",
    "card_id": "a7f9…",
    "message": "Happy birthday, {{firstname}}!",
    "from_name": "Jordan at Acme",
    "payment_method_id": "pm_4c19…"
  }
}
```

```json ↩️ Result theme={null}
{
  "autogift_rule": {
    "id": "6d2a…",
    "status": "paused",
    "event_type": "birthday",
    "contact_list_id": "d052…",
    "card_id": "a7f9…",
    "message": "Happy birthday, {{firstname}}!",
    "from_name": "Jordan at Acme"
  }
}
```

> [!TIP]
>
> Confirm the gift first with [`goody_autogift_rules_preview`](https://developer.ongoody.com/mcp-reference/tools/autogift-rules-preview), then turn it on with [`goody_autogift_rules_activate`](https://developer.ongoody.com/mcp-reference/tools/autogift-rules-activate). To group recipients into a reusable list, use [`goody_contact_lists_create`](https://developer.ongoody.com/mcp-reference/tools/contact-lists-create).


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