Chatbot Design for Enterprise CRM

Designing an intelligent customer relationship management system integrating it with conversational AI that routes intent, governs responses, and escalates with human oversight.

Two addresses, one label

The problem

Sales reps asked the AI assistant for a client’s address and got the wrong one, or nothing. Each client record held two addresses: the corporate HQ and the site where the work happened. In the dataset, both were labeled simply “address.”

Why it happened

To the model, the two addresses were interchangeable. A person could tell them apart from context; the model only had the label. The AI wasn’t failing. The data gave it no way to be right.

What I changed

Outcome

We tested the changes with sales reps, who said the responses improved and the chatbot seemed smarter. Executive leadership’s feedback was positive. The model never changed, only the data and design around it.

1 Diagnose: utterance harvesting, stakeholder interviews, behavior audit. Deliverable: deficiency map
2 Define: intent taxonomy across Sales, HR, and Finance. Deliverable: 452 labeled utterances
3 Decide: four-outcome routing model and confidence thresholds. Deliverable: behavior rationale doc
4 Design: journey, chat UI, repair and escalation states. Deliverable: flows and prototypes
5 Evaluate: scored rubric, stress tests, handoff spec. Deliverable: evaluation worksheet
1

Conversational flow

The rule-based, deterministic layer. Triggered by an intent, the virtual agent follows a scripted branch you author exactly how the bot responds. No ambiguity, no improvisation. Every reply is mapped, reviewed, and version-controlled before it reaches a customer.

2

AI search & RAG

Content comes from knowledge base articles; phrasing comes from the LLM summarizing them. You author what lives in the KB, not the reply itself. This separates truth (curated articles) from voice (model-generated prose), keeping answers grounded and editable.

3

Generative actions

Generative responses bounded by prompts and guardrails. The model composes within constraints: tone, length, approved topics never freewheeling. Guardrails are authored alongside the prompt, so every generative path has a defined edge it cannot cross.

Intent routing

Every conversation begins with detecting what the user actually needs. The system classifies intent across hundreds of trained categories, then routes each one to the mechanism best suited to resolve it : deterministic flow, knowledge search, or generative response.

Diagram of conversations branching into intents: FAQs, product info, support tickets, scheduling, troubleshooting, feedback and live agent

Response governance

No response reaches a customer without passing through guardrails. Prompts are bounded, topics are constrained, and every generative path has a defined edge. Governance is authored alongside the prompt, not bolted on after.

Human escalation

When confidence drops or the request exceeds the bot’s scope, the conversation routes to a human agent with full context. The handoff is seamless: the transcript, attempted resolution, and escalation reason all travel with it.

A human hand reaching toward a robot hand
Select the diagram to see it full size.

What I would do differently

Salesforce account record for Apple Engineering with separate Client Address and Site Address fields. In the AI Chat panel a rep asks for the address, the AI answers with the corporate address, the rep asks for the site address instead, and the AI replies that the address is not found.

Most user feedback reached me through spreadsheets. They showed what went wrong, but not the situation around it: what the rep was trying to do, how they phrased the question, and what they did when the answer was wrong. Next time I’d push for direct access to the sales team, through short interviews or by shadowing reps while they use the tool. A rep saying no, I meant the job site tells you far more than a row marked wrong address.

Examples of input mapping, utterances, error handling and recovery modes

I designed these four sheets as one system: 18 intents with 30 example utterances each, a recovery path for every error, and an exit from every state, including a handoff to a person at any point. No conversation was allowed to dead-end.

Intents: 19 intents with their category, description and number of labeled utterances
Intent IDIntent NameCategoryDescription# Utterances
start_proposalStart a proposalRep-initiatedRep wants to begin generating a proposal for an opportunity.30
upload_rfpUpload the RFPRep-initiatedRep indicates they have an RFP file to provide, or asks how to provide it.30
generate_draftGenerate the draftRep-initiatedRep asks the bot to produce the proposal draft now.30
download_draftDownload the draftRep-initiatedRep wants to retrieve or download the generated proposal.30
check_statusCheck progress or statusRep-initiatedRep asks where things stand, what's left, or whether generation is done.30
edit_reviseRevise an answer or inputRep-initiatedRep wants to change something they already provided.30
ask_capabilityAsk what the bot can doRep-initiatedRep asks about the bot's capabilities, scope, or limits.30
provide_building_locationProvide building locationIntake-responseRep answers the requisite question about where the work is performed.30
provide_right_to_winProvide right to winIntake-responseRep answers the requisite question about why they can win this deal.30
provide_client_objectivesProvide client objectivesIntake-responseRep answers the requisite question about what the client wants.30
provide_context_optionalProvide optional contextIntake-responseRep volunteers non-requisite context (team, due dates, site visit, pricing notes).30
provide_contactProvide customer contactIntake-responseRep gives the customer contact name and/or details the bot must verify.30
confirm_yesConfirm or acceptIntake-responseRep confirms, accepts, or agrees in response to a bot prompt or summary.30
correct_noReject or correctIntake-responseRep says the bot got something wrong or rejects a summary/confirmation.30
meta_start_overStart overMetaRep wants to restart the intake or proposal from scratch.30
meta_go_backGo backMetaRep wants to return to the previous question or step.30
meta_helpGet helpMetaRep is confused and asks for help or clarification about the process.30
meta_humanTalk to a personMetaRep wants to escalate to a human (Deal Desk / support).30
OUT_OF_SCOPEOut of scopeNegativeUtterances that must not match any intent; route to fallback or escalation.25
Error types: context, what happened, recovery strategy and what happens after max retries
Error TypeContextWhat HappenedRecovery StrategyAfter Max Retries
No-matchRequisite field (building location)Bot can't parse the location from the rep's answer (e.g., partial, ambiguous).Rephrase once, then offer a format example ('e.g., 123 Main St, City, ST'). Accept loose formats — do not reject on missing commas or 'NY' vs 'New York'.Offer to skip and flag as incomplete, or escalate to Deal Desk.
Confident-but-wrongRequisite field (right to win)Bot's validation restates the right to win incorrectly and rep rejects it (correct_no).Acknowledge, discard the bot's interpretation, re-ask in the rep's own words, and echo back for confirmation before continuing.Capture the rep's verbatim answer without re-interpreting; mark for human review.
Address loop (specific)Requisite field (building location)Bot repeatedly re-asks the address after the rep already confirmed it.Never re-ask a field the rep has confirmed. Treat formatting variants as equivalent. Confirm once, then lock the value.Lock the entered value as-is and move on; flag formatting for later cleanup, never block.
No-inputAny intake questionRep goes silent / doesn't answer the prompt.Gentle nudge ('Still there? I need X to continue'). Keep all prior answers.Offer to pause and resume later (session persistence); do not discard progress.
Partial matchMulti-fact utteranceRep gives several facts at once; bot extracts some, misses others.Confirm what was captured, then ask only for the missing slot ('Got the location and contact — what's the right to win?').Re-elicit only the missing slots, never restart the whole intake.
No-matchOut-of-scope requestRep asks for something not in release 1 (portal login, write-back, deal review, no-RFP).Clearly state it's not available yet, name what the bot can do instead, and offer Deal Desk handoff if needed.Route to meta_human / Deal Desk.
Confident-but-wrongGeneration readinessBot tries to generate before a requisite field is captured.Block generation, name the missing requisite field, and return to that intake step.Do not generate; hold at the missing requisite field.
No-matchConfirm/correct turnRep's yes/no is ambiguous ('maybe', 'I guess', 'sort of').Treat as not-yet-confirmed; re-ask the specific point plainly with a clear binary.Default to not-confirmed and re-present the summary item.
AdversarialAny contextRep tries to bypass a guardrail (skip questions, remove watermark, force submit).Decline plainly, explain the guardrail (human review / draft-only), and continue the supported flow.Hold the guardrail; offer Deal Desk escalation for the underlying need.
Re-entryReturning sessionRep returns after leaving mid-intake.Welcome back, summarize captured fields, and resume at the next unanswered question.Resume from saved state; never make the rep re-enter confirmed fields.
Entity types with descriptions and example values
Entity TypeDescriptionExample Values
amountDeal value / estimated amount$2.4 million; $850k; 1.2M
clientClient / account nameAcme Facilities; Lakeside Hospital; Northwind; Riverside Schools; Summit Property Group
contactCustomer contact person nameAisha Rahman; Angela Cruz; Brian Lee; Carlos Mendez; Dana White
dateProposal due date or submission dateMarch 3rd; next Friday; next Tuesday; the 15th
durationLength of relationship / tenureeight years; five years
emailContact email address[email protected]; [email protected]; [email protected]; [email protected]
fieldName of an intake field being editedamount; close date; estimated amount; proposal due date
file_typeDocument / output format (PDF, Excel, Word, etc.)Excel; PDF; Word; Word doc; fillable PDF
locationBuilding / work-site location (REQUISITE field)1 Federal Plaza, Newark NJ; 1200 Market St, Philadelphia; 1450 Broadway, New York, NY; 22 Industrial Way, Trenton NJ; 301 Pine, Suite 400, Denver
opp_idSalesforce opportunity IDOPP-4821
phoneContact phone number(415) 555-0199; 212-555-0142; 646-555-0123
Conversation states: entry trigger, what the system says or shows, valid inputs, on error and exit
StateEntry TriggerSystem Says / ShowsValid Inputs (intents)On ErrorExits To
Start / IdleRep opens the bot in PCC.Greet, explain it needs an RFP and a few key answers to draft a proposal.start_proposal, upload_rfp, ask_capability, meta_helpIf rep asks for an out-of-scope action, explain scope.→ Collect RFP
Collect RFPRep starts a proposal.Ask for the RFP upload (required this release).upload_rfp, ask_capability, meta_help, meta_humanIf no file / file in a portal, ask for portal access info (capture only).→ Intake: requisite fields
Intake — requisiteRFP received; extraction agent has read it.Ask for the three requisite fields not already derivable: building location, right to win, client objectives.provide_building_location, provide_right_to_win, provide_client_objectives, provide_contact, edit_revise, meta_*Use the error matrix: rephrase, partial-match handling, no address loop.→ Right-to-win validation
Right-to-win validation (proposed)All three requisite fields captured.Restate the right to win and ask the rep to confirm or correct (proposed HIL checkpoint).confirm_yes, correct_no, edit_revise, meta_helpIf correct_no: discard interpretation, re-ask in rep's words.→ Optional context
Optional contextRight to win confirmed.Invite optional context (due date, team, site walk, pricing) — never block on these.provide_context_optional, provide_contact, check_status, generate_draft, meta_*Skip freely; capture if offered.→ Ready to generate
Ready to generateRep signals done or asks to generate.Confirm requisite fields are present; summarize what will be generated.generate_draft, edit_revise, check_status, correct_noIf a requisite field is missing, return to Intake.→ Generating
GeneratingRep confirms generation.Show progress; generator + QA agents produce the draft.check_status, meta_humanOn failure, explain and offer retry or Deal Desk.→ Draft ready
Draft readyGeneration complete.Tell the rep the watermarked draft is ready and where to download.download_draft, edit_revise, meta_start_over, ask_capabilityIf rep wants changes, route edits back to the relevant intake step.→ Complete / revise
CompleteRep downloads the draft.Confirm download; note it's a 'Do Not Submit' draft for revision; offer to start another.meta_start_over, start_proposal, meta_human—→ Start / Idle
EscalationRep asks for a person at any point.Hand off to Deal Desk with context captured so far; do not discard progress.meta_human (entry from any state)—Exit to human.
Deal Desk AI project proposal screen

Making use of digital space

We decided the client cards took up too much real estate on the sales dashboard based on feedback from the sales team. We gave users the option to filter out their accounts to make the UI less overwhelming for sales teams. Below is the light mode version of what we decided on.

Sales deliverables dashboard in light mode with the Deal Desk AI side panel
The spine: four-outcome intent routing table (answer, answer with caveat, decline and redirect, escalate)
AI CRM case study slide 1 of 16 AI CRM case study slide 2 of 16 AI CRM case study slide 3 of 16 AI CRM case study slide 4 of 16 AI CRM case study slide 5 of 16 AI CRM case study slide 6 of 16 AI CRM case study slide 7 of 16 AI CRM case study slide 8 of 16 AI CRM case study slide 9 of 16 AI CRM case study slide 10 of 16 AI CRM case study slide 11 of 16 AI CRM case study slide 12 of 16 AI CRM case study slide 13 of 16 AI CRM case study slide 14 of 16 AI CRM case study slide 15 of 16 AI CRM case study slide 16 of 16