# Generate AI text and images with Claude and Stripe: n8n workflow

> Started by another system calling it. It calls services over plain HTTP rather than through connectors.

Source: https://millionrounds.com/workflow/generate-ai-text-and-images-with-claude-and-stripe (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Money admin](https://millionrounds.com/workflows?category=Money+admin#library)

# Generate AI text and images with Claude and Stripe

Started by another system calling it. It calls services over plain HTTP rather than through connectors. 21 steps, 3 branches: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgenerate-ai-text-and-images-with-claude-and-stripe)

**21 steps** Large: read it before trusting it with anything live

**3** Branches: places the flow splits

**0** Loops or waits

**0** Services by connector: it calls them over plain HTTP

## The flow

Starts it 4 Logic 11 Service 6

The steps in the order they run, from what starts it.

- 1 **Webhook - Generation Request** Webhook *Starts it*
- 2 **Set - Config** Set *Logic*
- 3 **HTTP Request - Stripe: Find Customer By API Key** Http Request *Service*
- 4 **JS - Resolve Customer** Code *Logic*
- 5 **IF - Customer Found** If *Logic*
- 6 **HTTP Request - Stripe: Get Active Subscription** Http Request *Service*
- 7 **Respond - Unauthorized** Respond To Webhook *Starts it*
- 8 **JS - Parse Subscription** Code *Logic*
- 9 **HTTP Request - Stripe: Get Current Period Usage** Http Request *Service*
- 10 **JS - Check Entitlement** Code *Logic*
- 11 **IF - Entitlement OK** If *Logic*
- 12 **Switch - Content Type** Switch *Logic*
- 13 **Respond - Entitlement Blocked** Respond To Webhook *Starts it*
- 14 **HTTP Request - Claude: Generate Text Content** Http Request *Service*
- 15 **HTTP Request - Generate Image Content** Http Request *Service*
- 16 **JS - Parse Text Result** Code *Logic*
- 17 **JS - Parse Image Result** Code *Logic*
- 18 **Merge - Combine Generation Results** Merge *Logic*
- 19 **HTTP Request - Stripe: Record Usage** Http Request *Service*
- 20 **JS - Build Success Response** Code *Logic*
- 21 **Respond - Success** Respond To Webhook *Starts it*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 21, with 3 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Nothing by connector; it calls services over plain HTTP
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 21 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 21 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgenerate-ai-text-and-images-with-claude-and-stripe)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Workflows like it

Also money admin, with the same services where possible, closest in size first.

- [**Auto invoice & receipt OCR to Google Sheets – Drive, Gmail** 21 steps · Gmail, Google Drive](https://millionrounds.com/workflow/auto-invoice-and-receipt-ocr-to-google-sheets-drive-gmail)
- [**Invoice overdue reminder system - delivered with Airtable** 21 steps · Airtable, Email](https://millionrounds.com/workflow/invoice-overdue-reminder-system-delivered-with-airtable)
- [**Parse WhatsApp invoice images with Gemini and Slack** 21 steps · HubSpot, Slack](https://millionrounds.com/workflow/parse-whatsapp-invoice-images-with-gemini-and-slack)
- [**Send Stripe payment invoices with Gmail and Google Drive** 21 steps · Gmail, Google Drive](https://millionrounds.com/workflow/send-stripe-payment-invoices-with-gmail-and-google-drive)
- [**Send tailored Upwork job proposals with Gemini and Slack** 21 steps · Gmail, Google Drive](https://millionrounds.com/workflow/send-tailored-upwork-job-proposals-with-gemini-and-slack)
- [**Telegram payment, invoicing and refund workflow for Stars** 21 steps · Google Sheets, Telegram](https://millionrounds.com/workflow/telegram-payment-invoicing-and-refund-workflow-for-stars)
