Automation library · Data collection

Automate customer retention with Stripe

Started by a clock, and works across Gmail, Google Sheets and Postgres. It hands the judgement calls to OpenAI. 22 steps, 1 branch: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

22 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 1Model 2Logic 7Service 12

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

  1. 1Schedule Trigger - 毎日03:00実行Schedule triggerStarts it
  2. 2対象顧客リスト取得 (CRM)Http RequestService
  3. 3サポートチケット情報取得Http RequestService
  4. 4サポート指標集計CodeLogic
  5. 5製品利用ログ取得PostgresService
  6. 6データ統合 (CRM+サポート)MergeLogic
  7. 7データ統合 (全データ)MergeLogic
  8. 8AI解約リスク予測Open AiModel
  9. 9高リスク顧客フィルタIfLogic
  10. 10特別オファー生成Http RequestService
  11. 11未更新ログ取得Google SheetsService
  12. 12オファー内容決定CodeLogic
  13. 13メール開封状況取得Http RequestService
  14. 14リテンションメール生成Open AiModel
  15. 15開封データ処理CodeLogic
  16. 16リテンションメール送信GmailService
  17. 17効果測定データ更新Google SheetsService
  18. 18施策ログ保存Google SheetsService
  19. 1930日経過レコード取得Google SheetsService
  20. 20顧客ステータス確認Http RequestService
  21. 21継続状況判定CodeLogic
  22. 22最終結果更新Google SheetsService

How it's built

Starts on
A clock
Steps
22, with 1 branch
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Sheets, Postgres
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Sheets and Postgres accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 22 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 22 steps before you point it at anything that matters.