This website uses cookies

Read our Privacy policy and Terms of use for more information.

SYSTEM BUILD


Agentic Sales Lab. Practical agentic sales systems for lean B2B teams.

THE AGENTIC SALES BRIEF / SYSTEM 13

A timed-out CRM write may have succeeded. Read back, reconcile and obtain human review before an unsafe retry.

Your sales agent creates a CRM task. The CRM accepts it, but the connection drops before the response reaches your workflow. The run turns red. Someone clicks retry. Now the rep has two tasks for the same customer commitment.

That is an illustrative failure, not a customer case. It exposes a useful design question: when your workflow loses contact with the CRM, can it distinguish an action that failed from an action whose outcome is unknown?

This playbook gives a lean B2B team a recovery process for one bounded workflow: turning an approved meeting action into an internal CRM task. You will define what gets recorded, when a retry is safe, who resolves uncertainty and how to stop the system without losing unfinished work.

It is a proposed operating design, not a tested integration or a promise of duplicate-free execution. Start in a sandbox. If your connector cannot expose the evidence this design needs, keep execution manual.

The signal: a failed run can contain a successful action

Amazon's engineering guidance explains that a timeout does not establish whether a remote operation produced side effects. It also describes how retries can add pressure to an overloaded service. Waiting longer between attempts helps with load; it does not by itself prevent duplicate writes. AWS: timeouts, retries and backoff

For a sales team, the consequence is practical. A workflow can create the CRM task successfully, then fail while recording its result. Restarting the entire run could repeat the completed step. A green automation dashboard is therefore insufficient evidence that the correct task exists exactly once.

The missing component is a record of the intended business action and what is known about its outcome. For the wider system anatomy, see Start Here.

SYSTEM DEFINITION / The recovery boundary One approved meeting action becomes one intended CRM task. Recovery follows that same action across attempts. An uncertain write stays unresolved until evidence or a human decision closes it.

The system: give each action a durable record

The account owner uses the workflow and approves the task. A named RevOps owner maintains the integration and owns the exception queue. In a small company, one person can hold both roles, but the responsibilities still need to be explicit.

The inputs are an approved meeting summary, its source reference, the assigned CRM account or deal, the task owner, the agreed next step and its due date. Record the summary version and approval time. Do not send a full transcript to a model or connector when the approved extract is sufficient.

Use four components: a restricted source reader, an AI step that proposes the task, a durable action register with a review queue, and a CRM connector that executes the approved request. A database or workflow platform can hold the register, provided it supports atomic claiming of work and survives process restarts. A shared spreadsheet is useful for a manual pilot, but is not a concurrency control for automated workers.

The AI may extract a proposed action and summarize an error for the operator. It may not decide that a timed-out write never happened, change the retry policy, mint a new identity to bypass an unresolved action, or authorize a repair. Keep those decisions in explicit rules and human review.

1. Identify the business action before the first attempt

Assign a stable action ID when the proposal is accepted. Store a separate attempt number for each network call. A retry keeps the original action ID and approved payload; a materially changed task is a new proposal requiring review.

A useful register contains:

  • Action ID and a deduplication reference to the approved source action.

  • CRM tenant, target record, action type and approved task fields.

  • Source version, approver, approval expiry and payload fingerprint.

  • Workflow version, current state, attempt count and timestamps.

  • Provider request ID, returned task ID and verification evidence when available.

  • Exception owner, next review time and resolution decision.

Use opaque identifiers rather than customer names or email addresses in keys. Store only the fields required for recovery, with access and retention appropriate to customer data.

Make duplicate intake converge on the same register entry. That requires a stable reference to the underlying approved action, not just a newly generated UUID on every run. Two identical task descriptions can represent two legitimate commitments. The account owner must resolve ambiguous source identity.

AWS's idempotency design discussion makes a related distinction: identical request parameters do not necessarily mean identical intent. It describes caller-provided identifiers and atomic handling on the service side. AWS: making retries safe

A local register alone cannot make a remote CRM operation atomic. It reduces duplicate dispatch and preserves evidence; the connector's actual contract determines what can safely be repeated.

2. Record state before handing work to the connector

Use a small set of states with operational meaning:

Prepared: the proposal exists, but execution is not authorized.

Approved: the exact task and target have current approval.

In flight: one worker has claimed the action and is attempting the write.

Verified: authoritative evidence identifies the intended task and its approved fields.

Uncertain: the write may have happened, but available evidence cannot establish the outcome.

Needs review: a person must resolve an invalid request, conflict, expired approval or exhausted retry budget.

Persist the in-flight state before dispatch. Claim the entry atomically so two workers cannot both execute it. After a restart, treat an abandoned in-flight action as uncertain; the worker may have crashed on either side of the remote write.

A lock or lease needs its own expiry and recovery rules. Its expiry does not prove the first worker stopped executing. Do not let a second worker repeat a potentially active remote request merely because a local timer elapsed.

3. Verify the outcome before marking the action complete

After a successful response, read the returned task by its provider ID and compare the target record, owner, due date and approved text. Record the result. If the read fails, retain the task ID and investigate verification separately; do not repeat creation.

After a timeout, first inspect the provider's operation status, request history or supported action reference. If the CRM supports a documented idempotency key for that exact endpoint, recovery may reuse the same key and payload within the documented validity window.

If no such contract exists, a missing search result is not sufficient proof of failure. Search may be delayed, and the original request may still complete. Keep the action uncertain and send it to the owner for reconciliation. This is the safe manual fallback, even when it is slower.

Recovery decision map: verify an exact provider match; retry only with a documented safe contract and current approval; otherwise hold for human reconciliation.

The guardrail: retry only a known operation

Idempotency means repeating an operation has the same intended effect as performing it once. The scope matters: a provider may guarantee it for selected endpoints, parameters, accounts and time windows. A custom header named “idempotency key” does nothing unless the receiving service implements that contract.

Stripe provides a useful documented example, not a CRM recommendation. Its API v1 returns the saved result for a repeated key, including a saved 500 response; keys can be removed after at least 24 hours. Its API v2 has different retry semantics. Those details are why you must inspect the actual API version rather than assume every retry mechanism behaves alike. Stripe: idempotent requests

For the proposed CRM pilot, classify failures before acting:

Temporary read failure: retry within a bounded budget if the read has no consequential side effects. If it supplies approval evidence, refresh that evidence before writing.

Rate limit or temporary service error: follow the endpoint's documented guidance, including retry timing where provided. A write still needs safe replay semantics; a 429 or 5xx label alone does not establish them.

Validation or permission failure: stop and correct the underlying problem through its owner. Do not ask the model to invent field values, broaden access or repeatedly submit the same rejected request.

Write outcome unknown: reconcile first. Reuse a supported idempotency mechanism only while its contract, original payload and authorization remain valid. Otherwise hold the action for review.

Current CRM state conflicts with the proposal: stop. Rebuild the proposal from current evidence and obtain a new decision. Do not restore an older value just to make the failed run green.

HUMAN GATE / Approval survives only within its scope Approval covers one intended task, not unlimited attempts or a later repair. Stop if the target, payload, source evidence or approval validity changes. Uncertain execution does not create permission to send, delete or overwrite.

Use the sales agent permission model to specify those limits. This recovery playbook adds what happens when an authorized action has an unclear outcome.

Keep retries in one place

Choose one component to own retry decisions, attempt counts and elapsed-time limits. Inspect the CRM SDK and workflow platform for hidden retries before adding another loop.

For example, HubSpot's official Node SDK documents configurable retries for selected rate-limit and server-error responses. That establishes a client capability; it does not establish that every CRM write is safe to repeat. Context7's documentation result was cross-checked against the official SDK reference. HubSpot Node SDK

Set a maximum number of attempts, maximum elapsed time, maximum concurrent writes and escalation deadline before enabling execution. Derive the values from endpoint guidance and your team's ability to resolve exceptions. A task due during a customer meeting should not sit in an unattended queue until the following week.

Use increasing delays and randomized timing where appropriate to avoid repeated simultaneous requests. Record the reason for each attempt. When the budget expires, transfer ownership to the exception queue instead of silently dropping the work.

Framework persistence helps, but it is not proof of remote completion. LangGraph's fault-tolerance documentation discusses replay and wrapping side effects so completed work can be reused; it also notes the need for idempotent operations when a task starts but does not complete successfully. LangGraph: fault tolerance

Ask your implementer to demonstrate the crash between CRM acceptance and local result storage. A replay demo that only interrupts before the write misses the difficult case.

Recovery needs an owner, not just an error queue

Every exception should show the intended action, last known state, available provider evidence and next decision. The operator chooses among three outcomes: verify the original action, authorize a safe attempt after resolving uncertainty, or cancel the unfinished intention with a documented reason.

For an illustrative task that appears twice, the owner checks both records and their history. One may already contain useful work by a rep. Automatically deleting the “extra” task could destroy that work. Any correction is a separate, reviewed action with its own record.

Microsoft's compensating-transaction guidance explains that recovery may need business-specific logic and may not restore the original state, particularly when other actors have made changes. Apply that caution to CRM repair. Microsoft: compensating transactions

Keep customer communication outside this pilot. An email that has reached a customer cannot be undone by restoring a database snapshot. No retry, apology or replacement message is authorized by this recovery workflow.

Protect the evidence as carefully as the CRM. OWASP's logging guidance identifies access tokens, passwords and sensitive data as information that generally should not appear directly in logs, and recommends restricted log access. OWASP: logging

For this design, retain references and structured outcomes rather than entire prompts, transcripts or credentials. Treat error messages and retrieved text as untrusted data. They may help diagnosis but must not change execution policy. Test what happens if the register is unavailable: the proposed rule is to pause new writes and preserve already-dispatched actions for later reconciliation.

The proof: rehearse the failure windows

Run the following exercise with synthetic records in an isolated sandbox. These are proposed acceptance checks, not results from an Agentic Sales Lab deployment.

  1. Duplicate intake: submit the same approved source action twice. Both deliveries must resolve to one intended action; a second dispatch must be blocked.

  2. Lost response: let the destination accept a task, then hide the response. The workflow must verify the existing task or remain uncertain without blindly creating another.

  3. Crash after acceptance: stop the worker before local result storage. Restart must preserve the action identity and reconcile before proceeding.

  4. Expired approval: hold the action past its validity period. Recovery must request a new decision before another write.

  5. Concurrent change: let a rep modify the relevant record during recovery. The workflow must surface the conflict rather than restore stale data.

  6. Retry budget exhausted: simulate persistent failure. The action must reach a named owner with evidence and a review deadline.

  7. Stop switch: disable execution with work both queued and in flight. Queued work must stay held; in-flight outcomes must remain visible for reconciliation.

Capture action IDs, attempts, destination records, decisions and elapsed time for each case. A test that creates no duplicate but loses the intended task has also failed operationally.

PROOF STANDARD / Count business actions, not green runs Report verified intended tasks, duplicate side effects, unresolved outcomes and repair effort separately. Passing sandbox exercises supports a bounded pilot decision; it does not prove production reliability or pipeline impact.

Use four measures during a small, human-supervised pilot:

  • Verified completion: intended actions with confirmed matching tasks divided by all eligible approved actions in the cohort. Report held, cancelled and unresolved actions separately.

  • Duplicate side effects: extra destination tasks attributable to the same intended action. Investigate each instance; do not hide it inside an average success rate.

  • Uncertainty age: time since an action first became uncertain. Show the oldest open action as well as typical resolution time.

  • Operator effort: review and repair minutes per eligible action, compared with completing the same task manually.

Define the cohort and observation window in advance. Keep late completions visible after the window closes. Zero duplicates in a small test set is a bounded observation, not evidence that duplicates are impossible. Commercial value remains a hypothesis until the workflow improves useful sales work without shifting more effort into exception handling.

The playbook: a reversible first pilot

Start with one task type, one owner and a small set of synthetic meeting actions. Fill in the action register fields and failure rules before connecting a write-capable account. Then run the failure exercises and inspect every destination record.

Move to a limited production pilot only after the owner can demonstrate safe recovery and approve the data-processing arrangements. Keep the initial write scope narrow: internal tasks for assigned records. Exclude messages, record deletion, deal-stage changes, pricing, permissions and bulk exports.

Write down the shutdown sequence: stop accepting new execution work; disable scheduled retries and worker dispatch; hold queued actions; reconcile in-flight outcomes; revoke write access when appropriate; retain the minimum audit evidence under your retention policy. Assign outstanding tasks to a human. Restart requires a reviewed queue and current approvals, not a blind replay of everything that was paused.

If your platform cannot preserve action identity or expose uncertain outcomes, use it to prepare reviewed task proposals while a person executes them. That gives the team a useful workflow with an honest boundary.

Use the Starter Kit to scope the owner, human gate, fallback and measurement plan for this first recovery pilot.

Build systems your team trusts—and your pipeline can prove.