> For the complete documentation index, see [llms.txt](https://learn.withessential.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.withessential.com/revenue/subscriptions/generate-a-subscription-draft-with-ai.md).

# Generate a subscription draft with AI

Subscriptions can use AI to draft recurring invoice line items, the same way invoice drafting does. The prompt templates offered here come from invoice prompt templates whose Use for setting is Subscriptions only or Invoices & Subscriptions.

On a new subscription, select the customer, property, start date, billing cadence, and any other required subscription settings first. When you generate, Essential saves a draft subscription, opens that subscription page, and streams the generated line items there. The generated subscription remains a Draft until you review and activate it.

On an existing subscription, AI generation is available only while the subscription is still Draft. Regenerating replaces the previous AI-generated line items and discounts for that draft, while manually added rows are kept.

After generation, review the recurring invoice template, taxes, discounts, attachments, recipients, and billing settings before activating the subscription. Activation is still a separate step.

> **Where to find it:** Invoices -> Subscriptions -> New Subscription or an existing Draft subscription, then use Generate in the invoice-template section

## Related guides

* [Create a subscription for recurring invoices](/revenue/subscriptions/create-a-subscription-for-recurring-invoices.md)
* [What the subscription page shows](/revenue/subscriptions/what-the-subscription-page-shows.md)
* [Set up invoice prompt templates for AI drafting](/administration/settings/set-up-invoice-prompt-templates-for-ai-drafting.md)
* [Auto-charge vs manual billing on a subscription](/revenue/subscriptions/auto-charge-vs-manual-billing-on-a-subscription.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://learn.withessential.com/revenue/subscriptions/generate-a-subscription-draft-with-ai.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
