liveBook · Manning

What you will learn in Effective Conversational AI

Chatbots that work

by Andrew Freed, Cari Jacobs, Eniko Rozsa
Foreword by Jesús Mantas

Chapter by chapter

Chapter 1: What makes conversational AI work?

1.1 Introduction to conversational AI · 1.1.1 Why use conversational AI? · 1.1.2 How does conversational AI work? · 1.1.3 How you build conversational AI · 1.2 Introduction to generative AI in conversational AI · 1.2.1 What is generative AI · 1.2.2 Generative AI guardrails · 1.2.3 Effectively using generative AI in conversational AI · 1.3 Introducing continuous improvement in conversational AI · 1.3.1 Why continuously improve · 1.3.2 The continuous improvement cycle · 1.3.3 Communicating continuous improvement to stakeholders · 1.4 Follow along · 1.5 Summary

What you learn in chapter 1 →

Chapter 2: Building a conversational AI

2.1 Building an FAQ bot · 2.1.1 FAQ bot foundations · 2.1.2 Static question and answering · 2.1.3 Dynamic question and answering · 2.2 Routing agents and process-oriented bots · 2.2.1 Routing agents · 2.2.2 Transitioning from a routing agent to a process-oriented bot · 2.3 Responding to the user with generative AI · 2.3.1 Integrating with an LLM · 2.3.2 Routing requests to an LLM · 2.4 Summary

What you learn in chapter 2 →

Chapter 3: Planning for improvement

3.1 Knowing when you need to improve · 3.2 Your cross-functional team · 3.3 Driving to the same goal · 3.3.1 Revisit business goals · 3.3.2 Effectiveness · 3.3.3 Coverage · 3.4 Identifying and resolving problems · 3.4.1 Finding problems · 3.4.2 Group review · 3.4.3 Determining acceptance criteria · 3.5 Developing and delivering fixes · 3.5.1 Sprint planning · 3.5.2 Measure again · 3.6 Summary

What you learn in chapter 3 →

Chapter 4: Understanding what your users really want

4.1 Fundamentals of understanding · 4.1.1 The impact of weak understanding · 4.1.2 What causes weak understanding? · 4.1.3 How do we achieve understanding with traditional conversational AI? · 4.1.4 How do we achieve understanding with generative AI? · 4.2 How is understanding measured? · 4.2.1 Measuring understanding for traditional (classification-based) AI · 4.2.2 Measuring understanding for generative AI · 4.2.3 Measuring understanding with direct user feedback · 4.3 Assessing where you are today · 4.3.1 Assessing your traditional (classification-based) AI solution · 4.3.2 Assessing your generative AI solution · 4.4 Obtaining and preparing test data from logs · 4.4.1 Obtaining production logs · 4.4.2 Guidelines for identifying candidate test utterances · 4.4.3 Preparing and scrubbing data for use in iterative improvements · 4.4.4 The annotation process · 4.5 What does the data tell us? · 4.5.1 Interpreting annotated logs for traditional (classification-based) AI · 4.5.2 Interpreting annotated logs for generative AI · 4.5.3 The case for iterative improvement · 4.6 Summary

What you learn in chapter 4 →

Chapter 5: Improving weak understanding for traditional AI

5.1 Building your improvement plan · 5.1.1 Identify problematic patterns in misunderstood utterances · 5.1.2 Incremental improvements · 5.1.3 Where to start: Identifying the biggest problems · 5.2 Solving “wrong intent matched” · 5.2.1 Improve recall for one intent · 5.2.2 Improve precision for one intent · 5.2.3 Improve the F1 score for one intent · 5.2.4 Improve precision and recall for multiple intents · 5.3 Solving “no intent matched” · 5.3.1 Clustering utterances for new intents · 5.3.2 When to stop adding intents · 5.4 Supplementing traditional AI with generative content · 5.4.1 Combining traditional and generative AI for an intent · 5.4.2 Prompting to convey understanding · 5.5 Summary

What you learn in chapter 5 →

Chapter 6: Enhancing responses with retrieval-augmented generation

6.1 Beyond intents: The role of search in conversational AI · 6.1.1 Using search in conversational AI · 6.1.2 Benefits of traditional search · 6.1.3 Drawbacks of traditional search · 6.2 Beyond search: Generating answers with RAG · 6.2.1 Using RAG in conversational AI · 6.2.2 Benefits of RAG · 6.2.3 Combining RAG with other generative AI use cases · 6.2.4 Comparing intents, search, and RAG approaches · 6.3 How is RAG implemented? · 6.3.1 High-level implementation · 6.3.2 Preparing your document repository for RAG · 6.4 Additional considerations of RAG implementations · 6.4.1 Can’t we just use an LLM directly? · 6.4.2 Keeping answers current and relevant with RAG · 6.4.3 How easy is it to set up the ingestion pipeline? · 6.4.4 Handling latency · 6.4.5 When to use a fallback mechanism and when to search · 6.5 Evaluating and analyzing RAG performance · 6.5.1 Indexing metrics · 6.5.2 Retrieval metrics · 6.5.3 Generation metrics · 6.5.4 Comparing efficiency of indexing and embedding solutions for RAG · 6.6 Summary

What you learn in chapter 6 →

Chapter 7: Augmenting intent data with generative AI

7.1 Getting started · 7.1.1 Why do it: Pros and cons · 7.1.2 What you need · 7.1.3 How to use the augmented data · 7.2 Hardening your existing intents · 7.2.1 Get creative with synonyms · 7.2.2 Generate new grammatical variations · 7.2.3 Build strong intents from LLM output · 7.2.4 Creating even more examples with templates · 7.3 Getting more creative · 7.3.1 Brainstorm additional intents · 7.3.2 Check for confusion · 7.4 Summary

What you learn in chapter 7 →

Chapter 8: Streamlining complex flows

8.1 The pain of complexity · 8.1.1 Complexity’s effect on the end user · 8.1.2 Complexity’s effect on business metrics · 8.1.3 The incremental cost and benefit of reducing complexity for the user · 8.2 Simplifying and streamlining the user journey · 8.2.1 Spotting complex dialogue flows · 8.2.2 Using what is known about the user · 8.2.3 Aligning with the user’s mental model · 8.2.4 Allowing flexibility in the expected user responses · 8.2.5 Supporting self-service task flows with API/backend processes · 8.3 Summary

What you learn in chapter 8 →

Chapter 9: Harnessing context for an adaptive virtual assistant experience

9.1 Importance of context in virtual assistant performance · 9.1.1 How context influences user interactions · 9.1.2 What is contextual information? · 9.2 Understanding modality · 9.2.1 Comparing modalities · 9.2.2 Importance of modality in designing virtual assistant flows · 9.2.3 Examples of how modality affects user experience · 9.2.4 Voice bot design considerations · 9.3 Enhancing context awareness and improving the overall user experience with RAG · 9.3.1 Designing adaptive flows with RAG · 9.3.2 Strategies for retrieving and generating contextually relevant responses · 9.3.3 Maintaining and updating adaptive flows · 9.4 Summary

What you learn in chapter 9 →

Chapter 10: Reducing complexity with generative AI

10.1 AI-assisted process flows at build time · 10.1.1 Generating dialogue flows with generative AI · 10.1.2 Improving dialogue flow with generative AI · 10.2 AI-assisted process flows at run time · 10.2.1 Executing dialogue flows with generative AI · 10.2.2 Using LLM for a search process · 10.3 AI-assisted flows at test time · 10.3.1 Setting up generative AI to be the user · 10.3.2 Setting up the conversational test · 10.4 Summary

What you learn in chapter 10 →

Chapter 11: Reducing opt-outs

11.1 What drives opt-out behavior? · 11.1.1 Immediate opt-out drivers · 11.1.2 Motivations for later opt-outs · 11.1.3 Gathering data on opt-out behavior · 11.2 Reducing immediate opt-outs · 11.2.1 Start with a great experience: Greetings and introductions · 11.2.2 Convey capabilities and set expectations · 11.2.3 Incentivize self-service · 11.2.4 Allow the user to opt in · 11.3 Reducing other opt-outs · 11.3.1 Try hard to understand · 11.3.2 Try hard to be understood · 11.3.3 Be flexible and accommodating · 11.3.4 Convey progress · 11.3.5 Anticipate additional user needs · 11.3.6 Don’t be rude · 11.4 Opt-out retention · 11.4.1 Start right away by collecting opt-out data · 11.4.2 Implementing an opt-out retention flow · 11.5 Improving dialogue with generative AI · 11.5.1 Improving error messages with generative AI · 11.5.2 Improving greeting messages with generative AI · 11.6 Sometimes it’s okay to escalate · 11.7 Summary

What you learn in chapter 11 →

Chapter 12: Conversational summarization for smooth handoff

12.1 Intro to summarization · 12.1.1 Why summarization is needed · 12.1.2 Elements of effective summaries · 12.2 Preparing your chatbot for summarization · 12.2.1 Using out-of-the-box elements · 12.2.2 Instrumenting your chatbot for transcripts · 12.2.3 Instrumenting your chatbot (for data points) · 12.3 Improving summaries with generative AI · 12.3.1 Generating a text summary of a transcript with summarizing prompts · 12.3.2 Generating a structured summary of a transcript with extractive prompts · 12.4 Summary

What you learn in chapter 12 →

Concepts explained in this book

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.