liveBook · Manning

Conversational ai

As explained in Introduction to Generative AI, Second Edition

A conversational agent is an AI software system that interacts with users through natural-language dialogue to answer questions or perform tasks.

A chatbot can help someone compare products, summarize a document, or ask a question in ordinary language. Conversational AI is software that interacts with users through natural-language dialogue to answer questions or help perform tasks. ChatGPT, for example, offers a web interface for requests ranging from movie recommendations to writing code. section 1.0 section 6.7

Conversational systems have changed considerably over time. The 1966 chatbot ELIZA used simple pattern matching and generic prompts such as “Please go on.” Some users nevertheless attributed empathy and understanding to it. Earlier virtual assistants such as Siri and Alexa followed a finite set of commands; assistants powered by large language models (LLMs) can respond more flexibly, but may also answer too confidently. section 1.1 section 6.7

An LLM is a model suited to generating text across many tasks, including dialogue. A conversational interface does not by itself make a system an autonomous agent: an agent can interact with its environment and flexibly pursue goals. Some newer assistants extend conversation with memory, web browsing, and tools for multistep work. section 1.23 section 6.7 section 8.3

Conversational AI supports a range of activities:

  • Customer service: Bank chatbots can handle inquiries, though an LLM-based bot may invent details about a bank’s offerings. section 6.4
  • Writing and programming: Chatbots can draft teaching materials or marketing copy, while coding assistants can speed up development; their output still needs human review. section 6.5 section 6.6
  • Personal assistance: An assistant may use conversation to plan a trip or summarize documents, and some can carry out steps using external tools. section 8.3
  • Social interaction: Some people use chatbots for emotional support or relationships, but these systems are not substitutes for mental health treatment. section 9.7

A contract revision with a privacy cost

An attorney might ask a dialogue agent to revise a draft contract and save time. If the prompt contains confidential client information, however, it may be reviewed, used for training, or leaked; sharing it without consent may also violate attorney-client privilege. The convenience of dialogue does not remove the need to consider what is safe to disclose. section 3.10

Responses should be checked, especially when errors could cause harm. An early Bard demonstration contained a factual error, and Microsoft limited conversation length and topics after its Bing chatbot produced unsettling responses. Social chatbots raise a different concern: friendly interaction may help some users, while prolonged use may worsen symptoms for others. Their effects remain an active area of research. section 1.17 section 1.19 section 9.7

How Introduction to Generative AI, Second Edition covers it

How deep it goes
Explains chatbot evolution, applications, and risks at an overview level, contrasting command-based assistants with more flexible systems.
Examples
Illustrates dialogue through ELIZA, bank customer-service bots, a contract-revision prompt, and personal assistants planning trips.
What it assumes
Introduces chatbot history and assistant capabilities without requiring prior machine learning or programming knowledge.
What you can do after
Evaluate conversational AI uses and risks, including inaccurate responses, confidential-data exposure, and emotional over-reliance.
How it connects
Connects conversational AI to large language models, information retrieval, AI agents, hallucinations, and data privacy.

Also explained in

Compare how 20 books explain conversational ai →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Introduction to Generative AI, Second Edition. The section links point to the parts of the book it draws on.