GOHIGHLEVEL ANSWERS & PROMPTS: PLAYBOOK T114 · DURABLE PENDING-ACTION ROWS, STATE RECHECKS & APPROVAL EXPIRY TIMERS
AUTHOR: DANIEL HALLMAN
KEYWORD: DURABLE APPROVALS
PLAYBOOK T114 · Durable Pending-Action Rows, State Rechecks & Approval Expiry Timers KEYWORD: DURABLE APPROVALS

How Do You Keep Paused AI Agent Approvals From Breaking or Replaying After a Server Restart in GoHighLevel and n8n?

Answer: If an AI agent pauses in memory waiting for a human to approve a $240 refund and your server redeploys overnight, either the approval button hangs forever or a naive resume replays earlier steps and issues the refund twice. Store the pending action itself as a durable record (contact ID, dollar amount, target order ID, idempotency key, and snapshot timestamp) in Settings > Custom Fields, re-check the live CRM record before executing when the reviewer clicks Approve in Automation > Workflow Builder, and attach an expiry wait step in Workflow > Settings so unapproved requests escalate or close automatically.

STEP-BY-STEP INSTRUCTIONS + ANNOTATED GHL SCREENSHOTS

Steps in GoHighLevel

  1. STEP 1
    In Settings > Custom Fields, create durable approval fields (pending_action_id, approval_amount, approval_snapshot_at, and approval_status) so the exact refund or booking change lives on the contact or opportunity record instead of inside a running agent process.
    REAL GHL SCREEN · SETTINGS > CUSTOM FIELDS ANNOTATED GHL SCREENSHOT
    Annotated GoHighLevel Custom Fields screenshot showing Settings > Custom Fields menu, Contact/Opportunity/Company object filters, and + Create field button
    1Open Settings > Custom Fields 2Filter by Contact or Opportunity Object 3Click + Create Field
  2. STEP 2
    In Automation > Workflow Builder, trigger execution from the reviewer's approval click (not a resumed prompt loop), compare the current order amount and status against approval_snapshot_at, and pass pending_action_id as the idempotency key so a late retry cannot fire a second refund.
    REAL GHL SCREEN · AUTOMATION > WORKFLOW BUILDER CANVAS ANNOTATED GHL SCREENSHOT
    Annotated GoHighLevel Workflow Builder canvas screenshot showing If/Else condition branch, priority routing steps, and Builder/Settings/Execution logs tabs
    1Add If/Else Condition & Tag Guard 2Chain Priority & Wait Steps 3Switch to Settings or Execution Logs
  3. STEP 3
    In Workflow > Settings and your approval workflow, add a 24-hour Wait branch that marks untouched requests expired and alerts a backup owner in Conversations > Team Inbox so stale approvals never sit open indefinitely.
    REAL GHL SCREEN · WORKFLOW > SETTINGS (RE-ENTRY & STOP ON RESPONSE) ANNOTATED GHL SCREENSHOT
    Annotated GoHighLevel Workflow Settings screenshot showing Settings tab, Allow re-entry toggle, and Stop on response toggle
    1Open Workflow Settings Tab 2Toggle Allow Re-entry Rules 3Enable Stop on Response
MODE: AGENT PROMPT
PASTE INTO CLAUDE CODE, CURSOR, CHATGPT, OR GOHIGHLEVEL ASK AI AGENT PROMPT
Set up restart-safe human approval tracking in sub-account <YOUR_LOCATION_ID>:
1. Create custom fields for pending_action_id, approval_amount, approval_snapshot_at, and approval_status on the CRM record.
2. Run the approved refund or update from a fresh workflow trigger that compares live record state against approval_snapshot_at and enforces the idempotency key.
3. Add a 24-hour expiry branch that marks unanswered approvals expired and notifies a backup reviewer.
Cause
  • In-memory pause-and-wait agent loops disappear on container restarts and deploys, leaving morning approvals pointed at dead processes or re-running payment and booking actions without checking whether the record already changed.
GoHighLevel Configuration
  • Persist the exact pending action on the CRM record in Settings > Custom Fields, verify current state and idempotency keys on resume in Automation > Workflow Builder
  • and set automatic expiration windows in Workflow > Settings.
MENU PATH REFERENCE

GoHighLevel Menu Paths

Step Menu Path in GHL Action
Step 1 Settings > Custom Fields Create durable approval fields (pending_action_id, approval_amount, approval_snapshot_at, and approval_status) so the exact refund or booking change lives on the contact or opportunity record instead of inside a running agent process.
Step 2 Automation > Workflow Builder Trigger execution from the reviewer's approval click (not a resumed prompt loop), compare the current order amount and status against approval_snapshot_at, and pass pending_action_id as the idempotency key so a late retry cannot fire a second refund.
Step 3 Workflow > Settings Add a 24-hour Wait branch that marks untouched requests expired and alerts a backup owner in Conversations > Team Inbox so stale approvals never sit open indefinitely.
3-step diagram showing Save action row storing amount, contact, and key, Check current state verifying the record before running the action, and Expire stale tasks escalating or closing unapproved waits.
VISUAL PLAYBOOK · PLAYBOOK T114 (DURABLE PENDING-ACTION ROWS, STATE RECHECKS & APPROVAL EXPIRY TIMERS) Back to Annotated GHL Screenshots ↑
DEFAULT SETUP VS. AUTOMATED WORKFLOW

Operational Comparison

Speed to Lead & Callback Safety
Default 0s Checkbox: Collides with Rep
45s Guard Workflow: Zero Collision
Caller Reply & Booking Rate
Generic 'We Missed You' SMS: 12%
Question-First Workflow SMS: 64%

Related Questions

BUILD FASTER IN GOHIGHLEVEL · FREE TRIAL BONUSES + MCP SERVER

Build this directly inside your GoHighLevel sub-account

Connect Claude Code, Cursor, or OpenAI Codex to our ghl-tools MCP Server & Rust CLI to build workflows, forms, and funnels from your editor, or start your GoHighLevel plan through our partner link to unlock $612+ in ready-to-import kits (including GHL & n8n Durable Approval State Kit) and weekly live clinics.