---
title: "Ask Hive’s own AI to draft a new automation from a short brief, and save what it returns as a DRAFT. It sends nothing to anybody: going live is a separate step a person approves in Hive. The connected Hive account is required and is never guessed."
method: POST
path: "/api/v1/tools/create_flow_from_brief"
---

# Ask Hive’s own AI to draft a new automation from a short brief, and save what it returns as a DRAFT. It sends nothing to anybody: going live is a separate step a person approves in Hive. The connected Hive account is required and is never guessed.

`POST /api/v1/tools/create_flow_from_brief`

## Request

- Base URL: `https://hivepublish.com`
- URL: `https://hivepublish.com/api/v1/tools/create_flow_from_brief`
- Auth: HTTP bearer

## Headers

- `Idempotency-Key` string, required

## Request body

- object
  - `accountId` string, required: The connected Hive account this automation runs on. Use list_connected_accounts to see them; never guess it.
  - `brief` string, required: What this automation should do, in a few sentences.
  - `context` string: Anything else worth knowing: the offer, the audience, the words to use.

## Response `200`

Tool result

- ToolResult
  - `data` unknown, required
  - `meta` object, required
    - `tool` string
    - `workspaceId` string, uuid

## Other responses

- `400`: Invalid input
- `401`: Missing or invalid credential
- `403`: Missing workspace scope, role permission, or plan entitlement
- `409`: Idempotency conflict, replay, or request still in progress
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/hivepublish/apis/hive-developer-api.md) · [All operations](https://skmtc.dev/hivepublish/apis/hive-developer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hivepublish/apis/hive-developer-api/revisions/b440c763583e?raw)
