Building an AI-Assisted Content Creation Platform for Language Learning

babbel · Education · 2023 · source Agentic: no · promotional bias: low · source-backed · extracted with prompt 0.5.4 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Language-learning content creation

Babbel wanted to use LLMs to make language-learning content creation more scalable and personalized without compromising editorial quality, cultural relevance, or human expert control.

Constraints:

Architecture

Babbel and Inovex built the Dynamic Content Creator: a Python/LangChain/OpenAI GPT application with a Gradio UI, prompt library, prompt optimization, dynamic variable injection from Babbel data, AI content generation, constitutional AI-style evaluation, human editor feedback, localization/transformation, and planned integration with Babbel content-management systems on AWS.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  content-creator[Content Creator] --> gradio-interface[Gradio Interface]
  gradio-interface --> prompt-library[Prompt Library]
  prompt-library --> babbel-data[Babbel Data]
  prompt-library --> prompt-optimizer[Prompt Optimizer]
  gradio-interface --> langchain-application[LangChain Application]
  prompt-optimizer --> langchain-application[LangChain Application]
  babbel-data --> langchain-application[LangChain Application]
  langchain-application --> openai-gpt[OpenAI GPT]
  langchain-application --> ai-evaluation[AI Evaluation]
  ai-evaluation --> content-creator[Content Creator]
  langchain-application --> content-management-system[Content Management System]
  aws-instance[AWS Instance] --> langchain-application[LangChain Application]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Content Creator Human editor or language expert who selects prompts, reviews outputs, edits content, and gives feedback. Gradio Interface, AI Evaluation
Gradio Interface User-facing UI that also exposes API endpoints for built functionality. Content Creator, Prompt Library, LangChain Application
Prompt Library Collection of predefined prompt templates with variables for language-learning tasks. Gradio Interface, Prompt Optimizer, Babbel Data
Prompt Optimizer AI-assisted feature that improves prompts and can condense prompts to reduce cost. Prompt Library, LangChain Application
Babbel Data Existing content, placeholders, examples, and learning-item context used to ground prompts. Prompt Library, LangChain Application
LangChain Application Python orchestration layer connecting prompt generation, OpenAI GPT, evaluation, and content transformation. Gradio Interface, OpenAI GPT, AI Evaluation, Content Management System
OpenAI GPT LLM used for prompt optimization, content generation, and revision support. LangChain Application
AI Evaluation Evaluation layer checking criteria such as inclusion, diversity, and prompt performance. LangChain Application, Content Creator
Content Management System Babbel systems where transformed and approved content can be saved or uploaded. LangChain Application
AWS Instance Deployment environment for the application. LangChain Application

Data flow

A content creator selects a prompt template, fills variables from Babbel data, optionally lets AI optimize the prompt, generates language-learning content with GPT, lets AI evaluate inclusion/diversity and prompt performance, reviews or edits the result, feeds feedback back into prompt generation, and transforms/saves content for localization and CMS workflows.

“we will start with a prompt Library um which is a collection of all the prompts we have where we are going to select um one prompt”transcript, stated
“we cannot only not only generate the content but we can then automatically after the content was generated let the AI evaluate it”transcript, stated

Why this architecture

The team kept the system modular and human-centered because Babbel's editorial quality depends on domain expertise and the model landscape changes quickly. Gradio accelerated UI/API creation, LangChain/Python orchestrated the workflow, GPT generated and optimized content, and humans remained final judges for cultural and educational suitability.

“so we always have the human in Loop for now at least in in our use cases um so um but actually since then I think hallucinations were quite limited but also we have been working on really like smaller I think it is generally really”transcript, stated
“but of course we also build it in a way that is quite modular so you can easily exchange the llms also the LM that's sitting behind for now it's GP PT um but that's how the Tex de looks like and yeah so now I um would like you to show the demo if it's yeah it's um and Pascal”transcript, stated

Models used: OpenAI GPT · Constitutional AI evaluation model

Scale

Alternatives considered (roads not taken)

Keep the full traditional content pipeline unchanged.

Rejected because: The sequential five-step process was rigid, time-consuming, and limited personalization.

“each uh stage uh usually depends from the deliverables of the previous one making it a little bit rigid and time time consuming”transcript, stated

Generate content without human editorial control.

Rejected because: Babbel still needed expert review for learning science, cultural relevance, hallucinations, and brand quality.

“the systems have uh have become um it is um super relevant to still keep the that human expertise uh to to enhance uh the the content to uh adjust it uh but also to keep it relevant to uh the cultural aspects that uh and language um inherently has um so yeah that's um”transcript, stated

Rely only on longer instructions and prompt wording.

Rejected because: Adding existing Babbel examples improved quality more than very long prompts.

“know how many lines uh it was a very long prompt and but it was still not rendering the results that we were expecting to so not not that it was incorrect or uh hallucina but it was definitely not at at the Quality that we were expecting and I I had to to uh deal”transcript, stated
“just fed around six 16 to 30 examples of the output that I was expecting uh and and that improved like that that's what led us to this 85 80 something perent of acceptance by the in in that sense the the the human is the final judge so yeah okay we have only”transcript, stated

Lock the product to one model provider.

Rejected because: The LLM landscape was expected to evolve, so the team made model exchange straightforward.

“it's um yeah we are using open AI GPT um but of course we also build it in a way that is quite modular so you can easily exchange the llms also the LM that's sitting behind for now it's GP PT um but that's how the Tex de looks like and yeah so now I um would like you to show”transcript, stated

Patterns

human-in-the-loop-gate (content-quality)

Editors review, revise, accept, or reject generated content and remain final judges for quality.

“we are now in charge so we can still decide do we accept them or decline them so it's always important there's always a human in the loop”transcript, stated

prompt-versioning (prompt-ops)

Prompt templates are collected in a prompt library and can be optimized, condensed, and reused with dynamic variables.

“a prompt Library we have this AI AED prompt engineering um we also have safety and compliance as as an important part”transcript, stated

llm-as-judge (evaluation)

AI evaluates generated content for inclusion, diversity, and prompt performance before human review.

“let the AI evaluate it so that we are getting an evaluation report that we can use as a basis”transcript, stated

rag-retrieval (data-grounding)

Existing Babbel content and examples are fed into prompts as a knowledge/context source to reduce hallucinations and improve quality.

“what changed the quality immensely was really adding um already existing learning items to the to the examples”transcript, stated

model-routing (model-ops)

The system was designed modularly so the underlying LLM could be exchanged as the model landscape changed.

“you can easily exchange the llms also the LM that's sitting behind for now it's GP PT”transcript, stated

Tradeoffs

Automation boundary

Chose AI-assisted generation with human final judgment over Fully dynamic user-facing generation without human review.

Rationale: Babbel needed to reduce risk while preserving reputation, cultural relevance, and learning quality.

“reduce uh the the risk of the of the deliverables and the uh exposure that you can get by by presenting wrong content to users”transcript, stated

Prompt context strategy

Chose Shorter prompts with existing Babbel examples over Very long hand-written prompts.

Rationale: Examples of expected output improved quality and acceptance more than increasingly long instructions.

“I just reduced the prompt to I think five lines and just fed around six 16 to 30 examples of the output that I was expecting”transcript, stated

UI framework

Chose Gradio over A custom UI/API layer from scratch.

Rationale: Gradio gave the team an interactive interface and automatically created API endpoints for the functionality.

“gradio is the interface the user um can interact with um and a nice thing about gradio is that it automatically um creates API end points”transcript, stated

Model dependency

Chose Modular model integration over Hard-coding OpenAI GPT as a permanent dependency.

Rationale: The team expected models to change and wanted easy LLM replacement.

“we also build it in a way that is quite modular so you can easily exchange the llms”transcript, stated

Gotchas (what bit them)

AI trust is an organizational problem, not only a model problem.

Root cause: Some content experts were skeptical that AI could meet Babbel's quality bar or support their work.

Resolution: Bring open experts on board first and frame the tool as a company-enabling human+AI system.

“creating trust uh with the content creators that AI is not really a threat but something that can support them”transcript, stated

Heterogeneous educational content is hard to feed to models.

Root cause: Audio scripts, live classes, tutoring sessions, self-study apps, and conversations do not share one clean structure.

Resolution: Structure the content into a unified data frame before asking the model to ingest it.

“it becomes a little bit challenging to bring them into a structured and unified uh data frame”transcript, stated

Generic NLP metrics can miss educational quality.

Root cause: A sentence can be linguistically correct but culturally irrelevant or educationally weak.

Resolution: Use human expert judgment alongside AI evaluation and traditional metrics.

“something can be correct from the n P perspective but uh it maybe it might not be culturally relevant”transcript, stated

Evaluation

Babbel combines AI evaluation reports for content criteria with human editor review, acceptance-rate measurement, freelancer/localization checks, and qualitative assessment of cultural and educational value.

Metrics: Editor acceptance rate · Inclusion and diversity evaluation · Prompt performance rating · Localization edit frequency · Educational and cultural relevance

“I have included two evaluation criteria inclusion and diversity which I will select”transcript, stated
“it was pretty much over 85% acceptance rate of of the the the the editor”transcript, stated

Outcomes

Babbel's existing process spans five stages, eight localization languages, three to four lessons per unit, around 35 production hours per unit, and a reported 85%+ editor acceptance rate for the early feature.

“having some of the content fed could incredibly reduce the the the prompt that you were imper”transcript, stated
“we can go on with this iterative process and always have a human in the loop until we are finally um happy with the results”transcript, stated