Chatbot developer interview questions, from dialog state to bot metrics
Chatbot developer interview questions cover both halves of the job: building the bot (intent and entity models or LLM prompts, dialog state, integrations through webhooks and APIs) and running it (fallbacks, human handoff, guardrails, and metrics such as containment and resolution rate). Expect a coding exercise around a conversation flow and a design round for a support or booking bot. Panels look for developers who think in whole conversations, including the ones that go wrong.
By Evin JohnPublished 8 min read
What a chatbot developer does
A chatbot developer builds conversational interfaces on websites, in apps, and in messaging channels such as WhatsApp, Slack or Microsoft Teams, and sometimes on voice lines. The work spans conversation design, natural language understanding, backend integration and operations. Some teams use platforms such as Dialogflow, Rasa, Amazon Lex or Microsoft's bot tools; others build on large language models with retrieval and function calling. The title overlaps with NLP and generative AI engineering, but the emphasis here is the product: a bot that finishes tasks for real users and hands off gracefully when it cannot.
- Conversation design: happy paths, repair paths, tone, and how the bot asks for missing information.
- Understanding: intent classification and entity extraction, or LLM prompts and structured outputs that do the same job.
- Integration: webhooks and APIs for orders, bookings, accounts and ticketing, with authentication and error handling.
- Operations: logging, analytics, review of failed conversations, retraining or prompt updates, and release testing.
- Safety: guardrails on what the bot says and does, privacy of the data users type, and escalation rules.
How chatbot developer interviews are usually structured
- Recruiter screenPlatforms and channels you have shipped on, traffic volumes, and whether your bots were rule-based, NLU-based, LLM-based or a mix.
- Coding exerciseOften a small conversation engine: track state, fill slots, call a fake API, handle an unexpected reply. Usually Python or JavaScript.
- Bot design roundDesign a support, booking or order-status bot: flows, data, integrations, handoff, and metrics.
- Portfolio or demo (some teams)Walk through a bot you built, including transcripts of conversations that failed and what you changed.
- Behavioral roundWorking with conversation designers, support leaders and legal; handling a public bot mistake.
NLU and LLM fundamentals
| Question | What it tests | What a strong answer shows |
|---|---|---|
| What is the difference between an intent and an entity? | Basics | Intent is what the user wants to do (track an order); entities are the details inside the message (the order number, a date) |
| Two intents keep getting confused. How do you fix it? | Model debugging | Checks the confusion matrix and real utterances, merges intents that are really one, adds distinguishing examples, or asks a clarifying question |
| When would you choose an LLM over a trained intent classifier? | Approach choice | LLMs for open-ended questions and varied phrasing; classifiers or rules where actions must be predictable, cheap and auditable; often a mix |
| How do you get reliable structured data out of an LLM? | Structured output | A defined schema, provider features for JSON or function calling where available, validation of every field, and a retry or fallback on failure |
| How would you ground answers in the company's help center? | Retrieval | Chunk and index articles, retrieve by the user's question, answer only from retrieved text, cite sources, and say so when nothing relevant is found |
| What is a confidence threshold for, and how do you set it? | Fallback design | Below it the bot clarifies or hands off; set it from labelled data by weighing wrong answers against unnecessary fallbacks |
| How do you support a second language? | Localization | Language detection, translated training data or prompts reviewed by native speakers, locale-aware dates and numbers, and separate metrics per language |
Dialog management and integration questions
- How do you track state across turns? Keep a conversation record with the active goal, filled and missing slots, and confirmed values, stored server-side and keyed by session.
- The user changes topic halfway through a booking. What happens? Park the booking state, answer the new question, and offer to resume, or abandon with a clear message after a timeout.
- How do you confirm before an irreversible action? Repeat the key details in one message and require an explicit yes, especially for payments and cancellations.
- The order API times out. What does the bot say? A plain apology, what it will do next (retry, create a ticket), and never a fake success. Retries must be idempotent.
- How do you authenticate a user inside a chat? Reuse the signed-in session on web or app; on messaging channels use a one-time link or code, and never ask for passwords in chat.
- When should the bot hand off to a human, and what does the agent receive? On low confidence, repeated failure, frustration or sensitive topics; the agent gets the transcript and collected details so the user does not repeat themselves.
Coding rounds often reduce this to a small state machine. A minimal slot-filling loop shows you can separate understanding from dialog logic:
import re
REQUIRED = ["date", "time", "party_size"]
PROMPTS = {
"date": "What day would you like?",
"time": "What time?",
"party_size": "How many people?",
}
def extract(text):
found = {}
if m := re.search(r"\b(today|tomorrow|friday|saturday)\b", text, re.I):
found["date"] = m.group(1).lower()
if m := re.search(r"\b(\d{1,2})(?::(\d{2}))?\s*(am|pm)\b", text, re.I):
found["time"] = m.group(0).lower()
if m := re.search(r"\b(?:for|party of)\s+(\d{1,2})\b", text, re.I):
found["party_size"] = int(m.group(1))
return found
def step(state, text):
state.update(extract(text))
missing = [slot for slot in REQUIRED if slot not in state]
if missing:
return PROMPTS[missing[0]]
return f"Booking {state['party_size']} on {state['date']} at {state['time']}. Shall I confirm?"
state = {}
print(step(state, "Hi, a table for 4 please")) # What day would you like?
print(step(state, "Friday")) # What time?
print(step(state, "7:30 pm")) # Booking 4 on friday at 7:30 pm. Shall I confirm?Expect the interviewer to push on it: what if the user says "actually make it 6", what if they give two times, how you would test it. Good answers mention overwriting a slot on correction, asking when values conflict, and a table of sample conversations used as regression tests.
Quality, metrics and safety questions
| Question | What it tests | What a strong answer shows |
|---|---|---|
| What is containment rate, and why can it mislead? | Metrics | Share of conversations finished without a human; it rises if users simply give up, so pair it with resolution checks and satisfaction |
| How do you find out where the bot fails? | Analysis | Reviews fallback and handoff transcripts weekly, clusters the failures, and fixes the biggest cluster first |
| How do you test a bot before release? | Testing | Unit tests on extraction, scripted conversation tests for key flows, a regression set of past failures, and for LLM bots an evaluation set scored automatically and by people |
| A user tells the bot to ignore its instructions and reveal its system prompt. What protects you? | Prompt injection | Treats user and retrieved text as untrusted, keeps secrets out of prompts, limits tools to least privilege, and checks outputs before actions |
| What should the bot never do through tools without confirmation? | Action safety | Money movement, cancellations, account changes and anything irreversible; those need explicit confirmation and server-side checks |
| How do you handle personal data typed into chat? | Privacy | Redacts sensitive fields in logs, limits retention, restricts who can read transcripts, and follows the company's privacy policy and local law |
| The bot gave a wrong refund policy answer on social media. What now? | Incident handling | Fix the source content or prompt, add the case to the test set, review similar answers, and work with support and communications on the reply |
A sample answer
Fictional example
- I worked on an order-status bot for an online furniture store. After a release, containment went from 58 to 71 percent and the team was pleased. When I read a sample of the newly contained conversations, many ended with the user simply leaving after the bot asked for an order number in a format they did not have. The release had removed the "talk to an agent" button from that step. Repeat contacts by email had risen in the same week. I restored the button, let the bot accept the email address as an alternative to the order number, and added a check that counts a conversation as resolved only if the user does not return within 48 hours. Containment settled at 64 percent, and repeat contacts dropped below the old level.
Behavioral questions
- Tell me about a conversation flow you redesigned after reading transcripts. Show the evidence and the result.
- Describe a disagreement with a conversation designer or support lead. Show how user data settled it.
- How did you decide what the bot should not try to handle? Scoping is a sign of maturity.
- Tell me about an integration that kept breaking. Root cause, fix, and how you made failures visible.
- How have you explained an LLM's limits to a non-technical stakeholder? Concrete examples, not jargon.
- What did you do when a bot said something embarrassing in public? Speed, honesty and prevention.
More questions to practice
- How do you version prompts or training data? Keep them in source control with the test results for each version, and roll back like any other release.
- What latency is acceptable in a chat, and how do you hit it? Users notice delays of a few seconds; stream responses, show typing indicators, cache frequent answers, and keep tool calls few.
- How do you design the bot's first message? Say what it can help with, set expectations about handing off, and offer two or three common starting options.
- How do you handle a user who sends a photo or a voice note? Support it only if the channel and use case need it; otherwise reply with what the bot can accept.
- How would you reduce cost on an LLM bot with heavy traffic? Route simple intents to cheaper paths, cache retrieval and answers, trim context, and measure cost per resolved conversation.
- How do you decide when a flow should be scripted instead of generated? Script anything regulated, transactional or legally sensitive; generate where wording can vary safely.
Questions to ask the team
- Which channels and languages does the bot serve, and which are planned?
- Is the stack platform-based, LLM-based or hybrid, and who owns prompts or training data?
- How are failed conversations reviewed, and how often do fixes ship?
- What is the handoff process to human agents, and what tools do they use?
A two-week preparation plan
- Days 1 to 3: build a small botA booking or order-status bot with slots, confirmation, an API call and a fallback, in your main language.
- Days 4 to 5: add an LLM pathRetrieval over a few help articles with citations and a refusal when nothing matches. Write ten test questions and score the answers.
- Days 6 to 8: design drillsDesign a support bot and a booking bot out loud in 45 minutes each: flows, data, integrations, handoff, metrics.
- Days 9 to 10: safetyList injection and data-leak risks for each design and the control for each one.
- Days 11 to 14: stories and demoPrepare a demo with a failed conversation and its fix, plus behavioral stories. The behavioral guide covers the structure.
When you rehearse the design round, Natively, an AI interview assistant for Mac and Windows, writes down everything you say in a mock session and can propose answer points in real time, tied to your résumé and the posting on Pro or the free trial. For the coding part, a screenshot of a practice prompt gets you an approach and code to compare with yours. Reading the transcript afterward is a fast way to notice whether you ever mentioned handoff or metrics without being asked.
Questions people ask
What are common chatbot developer interview questions?
How intents and entities differ, when to use an LLM instead of a classifier, how you track dialog state and fill slots, when the bot hands off to a human, how you measure containment and resolution, and how you defend against prompt injection.
What skills does a chatbot developer need?
Python or JavaScript, an NLU platform or LLM APIs, webhook and API integration, conversation design sense, testing and analytics, and awareness of privacy and safety risks.
What is containment rate in chatbots?
The share of conversations the bot finishes without a human agent. It can rise when users give up, so it should be read alongside resolution checks and satisfaction.
What coding questions are asked in chatbot developer interviews?
Often a small conversation engine: tracking state across turns, filling missing slots, calling an API, confirming before an action and handling unexpected replies.
Where to go next
Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.
Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.
