Memory patterns for dispatch agents: what to persist, what to forget
Design dispatch agent memory with explicit ownership, expiry, approvals, and tests for stale state across branches.

Memory patterns for dispatch agents need an owner and an expiry rule for every remembered item. When you build scheduling workflows for a field-service client with multiple branches, a remembered preference can outlive the job that gave it meaning. This guide shows how to separate the dispatch record from resumable workflow state, define the tool boundary, and test what happens when a dispatcher changes the plan while your agent is paused.
The architecture below is a design pattern, not a claim that any particular endpoint supplies every safeguard. Use Crisphive as the scheduling tool layer, and implement the approval and memory policies in your application. You should be able to explain what survives a restart before you let the agent change a booking.
Architecture: agent, tools, approvals
Limit what the agent sees to the work at hand. It receives the current request, reads the relevant scheduling record, and proposes the next action through a tool. The dispatch system owns the actual assignment. Your application owns the pause that asks a person to approve a change.
The trace should show who owns each decision. A conversation can contain an earlier technician assignment, a proposed replacement, and a dispatcher override.
Read the confirmed record.
It tells you which assignment currently applies. Don't resolve that disagreement by asking the model which message sounds more recent.
Consider a hypothetical regional dispatch team moving a visit between crews. The agent proposes a change and waits for approval. During that pause, another dispatcher updates the job. On resume, your application should read the job again, compare it with the approved proposal, and stop if the proposal no longer matches. Approval applies to a particular change, not everything the agent decides afterward.
For an integration, start at the Crisphive booking reference and map documented operations to your application's tools. Label additional controls as your implementation responsibilities. A reader shouldn't have to guess whether an approval check lives in your service or in the scheduling API.
Defining the scheduling tools
For LLM function calling, write each tool contract before writing the agent prompt, describing the required inputs and the authority needed to execute, as well as the result your application can verify when the call returns and the dispatcher needs to know whether the proposed change actually took effect. Separate a request for possible appointments from the operation that commits one. A suggested window isn't a customer commitment.
Your design contract can include a job identifier, the requested window, a required skill, and the identity of the approver. These are illustrative fields, not an API schema to copy. Check each against the endpoint you actually use, including its error responses. If approval evidence is missing, the application should refuse the change without asking the model to invent it.
When reviewing MCP server examples, use the Model Context Protocol documentation as the protocol reference. Keep the operational policy beside your tool definitions: which reads are permitted, which changes need approval, and what happens when a result is uncertain. Connecting a tool doesn't authorize its use for every job.
An AI agent tools API also needs a clear boundary around client accounts and branches. Resolve that boundary from trusted application identity. Don't accept a branch mentioned in conversation as authorization to alter its schedule. For function calling scheduling, reject an incomplete request and return the missing information so the next turn can ask a useful question.
State, memory and context
Start with the durable dispatch record: the job, its confirmed appointment, the assigned crew, and the business constraints that apply. Store changes through the system that owns them. Then decide which parts of the agent's work need to survive a pause. An unfinished approval request belongs in workflow state; it shouldn't quietly become a customer preference.

Context is the material available for the current decision, including a recently fetched job record or candidate windows that the agent can use to propose an appointment while your application checks whether the underlying information is still valid for the change the requester wants to make. Treat that material as a snapshot. Before a write, refresh anything whose change would invalidate the proposed action. Old availability stays old.
Even a larger context window can't make that result current.
- Keep approved, durable preferences with the customer or business record that owns them, following the client's access policy.
- Persist unresolved intent with its job reference and a clear reason for resuming.
- Expire candidate results when the request ends or the underlying schedule changes.
- Retain an audit event for a consequential failure without turning that failure into a standing scheduling rule.
The best memory patterns for dispatch agents make deletion part of the design. Ask who can correct a preference, what event invalidates it, and which stored copies must change. If an agent remembers an old appointment after a dispatcher has corrected the job, your next read should use the corrected record. Don't preserve the old answer merely to keep the conversation consistent.
Guardrails and failure modes
After a tool timeout, you still need to find out whether the operation happened. Treat that as an uncertain outcome. Read the resulting business state before deciding whether another write is appropriate. Where the actual endpoint supports duplicate protection, use its documented mechanism; otherwise design a reconciliation step instead of assuming a retry is harmless.
Authorization should also be checked when a paused workflow resumes. The original requester may no longer have access to that branch, or a different dispatcher may own the job. Keep the approval attached to the requested action and revalidate the conditions that allowed it. An old approval isn't a permanent permission slip.
For a tool-use integration, consult the supplied Claude documentation for the interface you select. Your application still has to decide when to stop. A tool result that contradicts the plan should produce a fresh decision or a handoff, with the unresolved state visible to the dispatcher.
Memory can make a failed attempt harder to unwind. If a technician was unavailable for a particular visit, record the outcome against that attempt. Don't infer a permanent availability rule. Likewise, a customer declining a proposed window doesn't establish a lasting preference unless the customer actually gives one and your policy permits storing it.
Evaluating agent behavior
Use a test dispatch record and inspect the resulting state as well as the agent's response.

Check the resulting job.
A polite confirmation is a failed test if the expected change never happened. A refusal is correct when the request lacks authority, even if the wording sounds less helpful than an invented alternative.
Build memory patterns for dispatch agents examples around interruptions. Pause after a proposal, edit the job through another actor, then resume. Restart the application while approval is pending. Complete a request and open another one for a different branch. Each test should name the information that survives and the information that must be refreshed or discarded.
Review the trace in sequence: request, selected tool, validated arguments, approval decision, result, and final business state. Capture enough to explain a failure while keeping private customer details out of diagnostic output where they aren't needed, so the developer can follow the selected action and its outcome without having to carry the customer's full record into a separate debugging system whose retention rules haven't been agreed with the client. Agree with your client on who owns that retention decision.
If you're deciding how to improve memory patterns for dispatch agents, start with a failing trace and change the relevant boundary. A stale candidate needs a refresh rule. A duplicated write needs outcome reconciliation. An unauthorized resume needs an access check. Add the corrected case to the evaluation set, then run it again after changes to prompts or tools.
Extending the pattern
Add another workflow when you can describe its owner and recovery path.
The n8n integration documentation is a reference for a build that includes that workflow system. Keep scheduling changes behind the same application checks regardless of where the request starts. A notification step shouldn't acquire permission to alter a visit merely because it follows a successful booking.
For an agency project, separate the implementation work you charge for from the client's ongoing operations. Assign responsibility for failed runs, changed permissions, and memory deletion before handoff. Crisphive's partner program describes the available partner tracks; use the published terms when discussing a recurring share with your agency.
Keep memory patterns for dispatch agents software focused on the client's decisions. More storage won't tell you which preference is still valid. When scoping memory patterns for dispatch agents cost, include the work of reviewing failures and maintaining the evaluation set, without promising a price or savings that the brief doesn't establish.
Before extending your agentic scheduling build, choose a paused dispatch change from your tests. Write down what it remembers, refresh the job, and try to resume with an expired approval. Make that refusal inspectable enough that the next developer can explain it without reading the entire conversation.
#BuildInPublic#DevTools#AIAgents#API#MCP#FieldService#FieldOps#SmallBusiness#dispatch#scheduling#AI#automation#SaaS#B2B#Productivity



