# Prove OpenAI-style retry cache hits with Metrecept and JWKS: n8n workflow

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

Source: https://millionrounds.com/workflow/prove-openai-style-retry-cache-hits-with-metrecept-and-jwks (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)

# Prove OpenAI-style retry cache hits with Metrecept and JWKS

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

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fprove-openai-style-retry-cache-hits-with-metrecept-and-jwks)

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

**6** Branches: places the flow splits

**0** Loops or waits

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

## The flow

Starts it 6 Logic 16 Service 4

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

- 1 **Test once** Manual trigger *Starts it*
- 2 **Call in** Webhook *Starts it*
- 3 **Config** Set *Logic*
- 4 **Freeze request body** Set *Logic*
- 5 **Payload ok?** If *Logic*
- 6 **Call 1** Http Request *Service*
- 7 **Respond invalid payload** Respond To Webhook *Starts it*
- 8 **HTTP status** Switch *Logic*
- 9 **Extract call 1** Set *Logic*
- 10 **Respond budget** Respond To Webhook *Starts it*
- 11 **Respond upstream** Respond To Webhook *Starts it*
- 12 **Prove retry?** If *Logic*
- 13 **Call 2** Http Request *Service*
- 14 **Skip call 2** Set *Logic*
- 15 **Call 2 status** Switch *Logic*
- 16 **Carry receipt** Set *Logic*
- 17 **Extract call 2** Set *Logic*
- 18 **Has JWS?** If *Logic*
- 19 **GET JWKS** Http Request *Service*
- 20 **No JWS** Set *Logic*
- 21 **JWKS ok?** If *Logic*
- 22 **GET usage** Http Request *Service*
- 23 **Verify Ed25519** Code *Logic*
- 24 **JWKS failed** Set *Logic*
- 25 **Build proof** Code *Logic*
- 26 **Respond proof** Respond To Webhook *Starts it*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 26, with 6 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 26 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 26 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%2Fprove-openai-style-retry-cache-hits-with-metrecept-and-jwks)
- **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.

- [**Create work4all incoming invoices** 26 steps · Outlook](https://millionrounds.com/workflow/create-work4all-incoming-invoices)
- [**Process e-commerce orders with Gmail and Slack** 26 steps · Gmail, Slack](https://millionrounds.com/workflow/process-e-commerce-orders-with-gmail-and-slack)
- [**Turn agency timesheets into invoices and alerts with Odoo** 26 steps · Gmail, Slack](https://millionrounds.com/workflow/turn-agency-timesheets-into-invoices-and-alerts-with-odoo)
- [**Generate service quotes with OpenAI and Telegram** 26 steps · calls a model · Gmail, Telegram](https://millionrounds.com/workflow/generate-service-quotes-with-openai-and-telegram)
- [**Send donor thank-you receipts and weekly digests** 26 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/send-donor-thank-you-receipts-and-weekly-digests)
- [**Automate income and expense tracking in Google Sheets** 27 steps · Google Sheets, Telegram](https://millionrounds.com/workflow/automate-income-and-expense-tracking-in-google-sheets)
