Share E-Book
Scan to open this page

Scan with your phone to open this page

AuthorAndrew Freed, Cari Jacobs, Enikő Rózsa

Create and improve conversational AI with the latest patterns, best practices, and tools, including generative AI models. Conversational AI (CAI) tools are built to solve problems, but all-too-often they just end up causing pain for users–and developers! Effective Conversational AI reveals best practices and industry-tested techniques for creating chatbots and conversational AI tools that are reliable at an enterprise scale. With the tested ideas and examples in this book, you’ll learn to build chatbots that your customers and colleagues will actually want to use! In Effective Conversational AI you’ll learn how to: Create high-quality chatbots and other conversational AI experiences Plan for continuous improvement Incorporate generative AI solutions to improve quality, accuracy, and usability Evaluate user experience and business results Effective Conversational AI introduces continuous improvement practices that are vital for the constant betterment and evolution of chatbots and CAI tools. It introduces the three most-common forms of chatbot—Q&A, process-oriented, and routing agents—and presents a reliable framework for continuously improving each one. Using modern generative AI and tried-and-tested classic approaches, you’ll learn to deliver high performance chatbots that can guide a customer through complex end-to-end tasks—no human required! What's inside Blend Generative AI and conventional chatbot tools Use LLMs to improve quality, accuracy, and usability Plan for continuous improvement Domain-specific responses using RAG About the reader For developers, engineers, and product managers working with conversational AI.

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
# Effective Conversational AI: Chatbots that work — Reading Guide ## 【One-Line Pitch】 A practical, pattern-based playbook for building and continuously improving enterprise-grade chatbots—blending classic conversational AI techniques with modern generative AI—for developers, engineers, and product managers who want chatbots that actually solve user problems rather than frustrate them. ## 【Book Arc】 - **Opening (~0%–9%)**: Sets the stage with the core promise—conversational AI tools are built to solve problems but often fail—and introduces the book's structure: three chatbot archetypes (Q&A, process-oriented, routing agents) and a continuous improvement framework. Includes practical notes on code availability, GitHub resources, and the liveBook forum. - **Early (~9%–25%)**: Dives into what makes conversational AI work: identifying and minimizing risks, assessing where generative AI can help, and using LLMs safely. Covers user pain-point analysis (e.g., password reset flows), LLM selection dos and don'ts, and the importance of measuring against business outcomes like customer satisfaction and cost reduction. - **Early (~25%–34%)**: Walks through building an FAQ bot (the "CakeBot" example) step by step—from configuring fallback actions and human-agent handoffs to evolving static responses into dynamic ones (e.g., store hours that vary by location) and integrating LLM calls for recipe generation. - **Middle (~38%–47%)**: Shifts to the continuous improvement mindset: assembling cross-functional teams (developers, call-center agents, data analysts), categorizing conversation outcomes, defining milestones for happy paths, and using analytics dashboards to identify failure points and drive iterative refinement. ## 【Key Takeaways】 - **Start with user pain points, not technology** (Early): Before building, ask what users need, what information they have, and how they express themselves—then design the bot to extract meaning, call APIs, and collect the right data. This user-first framing prevents building solutions nobody wants. - **Choose LLMs by task, not hype** (Early): Don't pick a model because it performed well on an unrelated task; experiment with multiple models (e.g., Flan-UL2 for generalist tasks, MPT-7B-Instruct for instruction following) and test on multiple inputs before trusting a configuration. Model selection is task-dependent and probabilistic. - **Measure against business outcomes, not just usage** (Early): Track metrics like containment rate, average handle time, human touches, and net promoter score—not just conversation counts. Stakeholders invested in CAI want business results, and trends matter as much as current performance. - **Design fallbacks that fail gracefully** (Early): Configure "no action matches" responses to limit user frustration—e.g., reduce the retry threshold from 3 to 1 before deflecting to a human agent. Most platforms offer no-code/low-code human handoff; the conversational design around it is what matters. - **Evolve static responses into dynamic ones** (Early): When a single answer no longer fits all cases (e.g., store hours varying by location), add clarifying questions and flow diagrams to guide users to the right answer—ambiguity should be resolved before answering. - **Build a cross-functional improvement team** (Middle): Developers, call-center agents, and data analysts each bring unique insights—agents know user pain points, analysts can categorize failures by last task attempted, and developers can implement fixes. Small teams may combine roles, but all three perspectives are needed. - **Use a detailed outcome model with milestones** (Middle): Define success milestones for each happy path (e.g., "Schedule appointment," "Help with anything else?") and categorize conversations by outcome—immediate escalation, successful completion, or failure—to pinpoint where the bot breaks down and prioritize fixes. ## 【Reading Tips】 - **Skim the code-heavy sections** (Early, ~25%–34%): The CakeBot walkthrough includes platform-specific configuration details (watsonx Assistant). If you're not using that platform, focus on the conversational design patterns and sample dialogues rather than the exact clicks. - **Deep-read the LLM selection guidance** (Early, ~9%–19%): The dos and don'ts table for choosing models, testing prompts, and handling probabilistic outputs is broadly applicable regardless of which LLM you use—worth internalizing. - **Pay attention to the PharmaBot case study** (Middle, ~38%–47%): The cross-functional team example and outcome-model design are the book's most transferable frameworks. Even if the healthcare domain isn't yours, the process of categorizing failures and defining milestones applies to any chatbot. - **Use the exercises**: Each chapter includes practice exercises—try them with your own use case rather than just reading through. The GitHub repository has working code and prompts to experiment with. - **Expect model drift**: The authors note that LLMs are fast-moving and probabilistic—your results may differ from the book's examples. Treat the prompts as starting points, not guaranteed outputs. ## 【Coverage Limits】 This guide covers the book's core themes—building FAQ bots, integrating generative AI, and planning continuous improvement—based on excerpts through ~47% of the book. Later chapters (context handling, adaptive experiences, advanced patterns) are not covered here; the excerpts do not include material on those topics. ##
Excerpt 1
Jacobs Enikő Rózsa Foreword by Jesús Mantas M A N N I N G Andrew: Thank you to my wife Elise and kids Greg and Jeff for supporting me in writing another bo...
View in text
Excerpt 2
dif- ferent prompts, parameters, or models in your use case. By the time you read this book, a completely new set of models may be available for use! For ea...
View in text
Excerpt 3
eate a flow diagram and sample conversations when your con- versation has dynamism. Some of your team members will prefer the diagrams, others the conversati...
View in text
Excerpt 4
Bot: "Great! Please hold for a moment while I transfer you to a human agent who can provide personalized assistance. Your health is our top priority." Pha...
View in text
Excerpt 5
nforcement, and the opportunity to acquire new skills. 4.1.2 What causes weak understanding? These are the most common reasons a chatbot will exhibit a decl...
View in text
Excerpt 6
er is not currently trained on? A misalignment between what your users expect to be able to ask and what your classifier is trained to recognize con- tribute...
View in text
Excerpt 7
ot_Received show an improved F1 score. Number of Number of Intent Recall Precision F1 score samples predictions Item_Not_Received—V3 16 9 0.4375 0.7777 0.56...
View in text
Excerpt 8
ata, thus enhancing the bot’s credi- bility and reliability. Additionally, RAG expands the versatility of conversational AI sys- tems by enabling them to han...
View in text
Tags
AI categories
Artificial IntelligenceAIProgramming Language
ai
Publish Year: 2025
Language: English
Pages: 330
File Format: PDF
File Size: 2.7 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…