Automation library · Money admin

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

21 stepsLarge: read it before trusting it with anything live
3Branches: places the flow splits
0Loops or waits
0Services by connector: it calls them over plain HTTP

The flow

Starts it 4Logic 11Service 6

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

  1. 1Webhook - Generation RequestWebhookStarts it
  2. 2Set - ConfigSetLogic
  3. 3HTTP Request - Stripe: Find Customer By API KeyHttp RequestService
  4. 4JS - Resolve CustomerCodeLogic
  5. 5IF - Customer FoundIfLogic
  6. 6HTTP Request - Stripe: Get Active SubscriptionHttp RequestService
  7. 7Respond - UnauthorizedRespond To WebhookStarts it
  8. 8JS - Parse SubscriptionCodeLogic
  9. 9HTTP Request - Stripe: Get Current Period UsageHttp RequestService
  10. 10JS - Check EntitlementCodeLogic
  11. 11IF - Entitlement OKIfLogic
  12. 12Switch - Content TypeSwitchLogic
  13. 13Respond - Entitlement BlockedRespond To WebhookStarts it
  14. 14HTTP Request - Claude: Generate Text ContentHttp RequestService
  15. 15HTTP Request - Generate Image ContentHttp RequestService
  16. 16JS - Parse Text ResultCodeLogic
  17. 17JS - Parse Image ResultCodeLogic
  18. 18Merge - Combine Generation ResultsMergeLogic
  19. 19HTTP Request - Stripe: Record UsageHttp RequestService
  20. 20JS - Build Success ResponseCodeLogic
  21. 21Respond - SuccessRespond To WebhookStarts 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.