# Official MCP v2 Workflow Execution Log Audit Prompt

Source: Daniel Hallman (https://danielhallman.com/prompts/workflow-audit-logs.md)
Companion Skill: https://danielhallman.com/skills/ghl-workflow-debugger/SKILL.md

## Prompt for Claude or ChatGPT (Connected via Official Hosted MCP v2)

```text
Use the HighLevel MCP v2 connection (workflows.readonly, workflows.logs, contacts.readonly, conversations.readonly) to inspect sub-account [LOCATION_ID] without modifying any workflow yet.

1. Confirm the active sub-account name and locationId first.
2. Pull published workflows and the last 60 days of workflow execution logs.
3. Flag every workflow that:
   - Sends outbound SMS with Stop on Response disabled
   - Triggers on Missed Call without a 45-second Wait and handled-by-rep Goal Event
   - Fires an Outbound Webhook without a 1-minute Wait or {{contact.id}} idempotency key
   - Lacks an angry/STOP/DND pause check for ai_voice_paused and ai_chat_paused
   - Shows repeated failed or duplicate executions on the same contact within 10 minutes
4. Output a table: Workflow Name | Trigger | Log Finding | Exact Setting or Step to Change.
Return the inspection table only without calling workflows.write or workflows.publish.
```
