PPromptReports
Use cases/Customer escalation to recovery

Customer escalation to recovery

Partly builtLDG-2270CommitOpsRepoOpsPromptComputeSales as Code

Sales as Code shows a kept promise on the deal, switching on with the customer join. Three parts to go.

Use case

Customer escalation to recovery: a workflow across CommitOps, RepoOps, PromptCompute, Sales as Code that starts from a customer message that names a promise, or a broken-promise case in CommitOps.

Who would use it

Engineering leads and customer teams when a customer reports that something they were promised broke.

What value it provides

One case runs from the complaint to the kept promise. The fix and the customer notice go to a person together, recovery is measured, and the deal shows the result.

Why it matters to the user

A customer judges you on how fast you recover and whether you told them. This makes both visible, with proof the account team can show.

The problem

Support sees the complaint, engineering sees the error and sales sees the deal. Nobody sees all three, so the fix ships and the customer hears about it last.

Expected outcomes

  • Hours from customer report to verified recovery
  • Promises at risk that end kept
  • Customer notices sent before the fix was verified: target 0

Each run records its outcome as met, not met or not measured.

How it runs

1. Open a case from the customer message and match it to a promiseCommitOpsPlanned
2. Trace the error to its likely change and agent sessionRepoOpsBuilt
3. Propose the fixRepoOpsBuilt
4. One approval for the fix and the customer notice togetherPromptComputePlanned
5. Measure recovery after the fix deploysRepoOpsBuilt
6. Mark the promise kept or brokenCommitOpsSwitching on
7. Show the kept promise on the dealSales as CodeSwitching on

Products and connections

ProductRole in this workflowDocs
CommitOpsOpen a case from the customer message and match it to a promise; Mark the promise kept or brokenReference · CommitOps docs
RepoOpsTrace the error to its likely change and agent session; Propose the fix; Measure recovery after the fix deploysReference · RepoOps docs
PromptComputeOne approval for the fix and the customer notice togetherReference · PromptCompute docs
Sales as CodeShow the kept promise on the dealReference · Sales as Code docs

Outside the family: Slack or your support inbox, GitHub, HubSpot, Salesforce or Attio.

What a person approves

ActionDefault risk
repoops.build_fixmedium
commitops.customer.notifyhigh
crm.deal.updatemedium

Action keys are from the PromptCompute catalog.

How to access it from an agent

An agent will run this workflow through the PromptReports MCP server or API, with an ID agent token. The runner will then call each product for it. Proposed

// MCP: https://mcp.promptreports.ai/mcp (Proposed)
start_run({
  workflow: "escalation-to-recovery",
  inputs: { "customer": "Acme Freight", "report_source": "Slack #acme-support", "promise": "C-1182 (optional, found if blank)" },
  dry_run: false
})
// returns { run_id, status: "running", approvals_url }
get_run({ run_id })   // poll, or subscribe to run events
curl -X POST https://api.promptreports.ai/v1/runs \
  -H "Authorization: Bearer $PROMPTREPORTS_AGENT_TOKEN" \
  -d '{"workflow":"escalation-to-recovery"}'

Or call the products yourself, step by step:

ProductEndpointTools
CommitOpshttps://commitops.ai/api/mcpwhoami list_assertions get_assertion promised_not_started
RepoOpshttps://mcp.repoops.ai/mcpsearch_brain get_pre_edit_context propose_brain_entry get_incident_attribution
PromptComputehttps://mcp.promptcompute.ai/mcprequest_approval get_approval cancel_approval answer_approver
Sales as CodeTo confirmto confirm

Set it up

  1. Sign in at app.promptreports.ai with PromptReports ID, and pick your org.
  2. Connect CommitOps, RepoOps, PromptCompute, Sales as Code on the Connections page. Link Slack or your support inbox, GitHub, HubSpot, Salesforce or Attio through the product that uses it.
  3. Register the agent that will run it on the Agents page, and give it a version manifest.
  4. Set the approval policy for repoops.build_fix, commitops.customer.notify, crm.deal.update. Start with Require approval; critical actions are never auto.
  5. Fill in the inputs (Customer, Report source, Promise) and choose the trigger: a customer message that names a promise, or a broken-promise case in CommitOps.
  6. Start a dry run. It will count no workflow request, and it shows which steps would record missing evidence.
  7. Start the run. Approve each gate in the approvals inbox, then read the signed record when it ends.