Get to know the AI behind every Video Call with Lily
Source: Duolingo Blog (Video Call with Lily, AI role play) · 2025-04-22
Large Language Models (LLMs) like ChatGPT, Claude, and Gemini have been trained on enormous amounts of language data in order to have natural-sounding exchanges. But using them to teach language learners is not as easy as saying, “Hey! Talk to this learner in Spanish!”
To develop AI-powered features like Video Call with Lily, we can’t just let the model roam freely. Instead, we use targeted instructions and a predictable structure to make sure every call with Lily brings delight and sass—and, of course, the opportunity for speaking practice.
To achieve the right balance, we create a prompt (or set of instructions) for the LLM. You can think of the prompt like a conversation involving three characters:
Assistant: This is Lily, the AI bot who reacts to what you, the User, say in accordance with the instructions from the System.
System: This is like the Assistant’s coach. Duolingo Learning Designers write the instructions that the System says to the Assistant (Lily) about how to act and what to say.
User: This is you—the learner who interacts with the Assistant (Lily).
In all our calls, we provide the System with a robust set of instructions for how Lily should behave. These instructions include information about Lily’s personality and backstory, they tell her how to help you if you’re stuck, they ensure she speaks at the correct level, and more.
If you’ve done several Video Calls, you may wonder, “How does Lily remember that about me?!” when she brings up information from previous calls. This is because after Lily hangs up, we take the call’s transcript, show it to the LLM, and ask “What important information have we learned about the User?” The information gleaned is then added to a List of Facts. The updated list becomes part of the instructions that the System gives to Lily during your next call.
That is to say, before Lily begins talking, the System says “Remember this User? Here’s a List of Facts: They said they have two dogs, they’re studying architecture, and their favorite food is tacos.” That way, Lily might mention “How are your dogs doing?” or “Have you tried any good tacos lately?” to make the call seem personalized and magical.
As Video Call has developed and evolved, we’ve learned that it’s important for the LLM to write the first question separately. When we include the instructions for the first question with the instructions for the rest of the call, we can often overload the LLM and get undesirable results—like sentences that are overly complex or missing the vocabulary provided in the Conversation Prep. It’s kind of similar for humans: If you’re told to do fifty tasks at the beginning of the day, you’ll probably forget to do some of them—or maybe you’ll do all fifty in a half-baked way. And since we want everything fully baked, we prepare the first question on its own.
In order to let learners lead the conversation, we’ve since added an extra check that says “Does it seem like the learner wants to lead this conversation? If yes, ignore what you originally were going to talk about.” We have high hopes for these mid-call evaluations, as the LLM is always working—even during the Video Call itself—to ensure a great experience.
In the mid-call evaluation, the System looks at what you’ve said and asks Lily questions to keep the conversation engaging and on track:
Did the learner talk about something that Lily loves? If yes, act excited!
Did the learner talk about something inappropriate? If yes, hang up now!
Lines of inquiry this paper opens 24
Research framings built by reading the notes related to this paper — the questions it feeds into.
What determines how people perceive and trust AI socially?- Which linguistic categories drive stronger perceptions of AI humanness than others?
- How do brand identity and tone factor into AI interaction design?
- Do users perceive agent identity and interaction quality as separate design problems?
- Can social cue quality determine whether AI interactions stay reflective over time?
- How do LLM assistants differ in supporting user agency across developers?
- Does Atlassian's approach differ from other AI interaction design frameworks?
- How does agent design differ fundamentally from interaction design practice?
- What evidence would prove agent design has achieved paradigm status?
- Does Nielsen's intent-surface model predict successful chat-based work interfaces?
- How much does interface design versus model capability drive perceived AI value?
- Can a single visual component communicate AI presence across different product contexts?
- What evidence supports splitting agent customization into identity and interaction decisions?
- Why should service design absorb agent design rather than keep them separate?
- How do poorly designed handoffs between agents and humans amplify customer frustration?