📖 Lesson content
Summary
When building applications with AI models, you need to understand the flow of data from user input to AI-generated response. Let's walk through how this works with AWS Bedrock and see what happens behind the scenes of a typical chat application.
How Chat Applications Work
Imagine you're building a web app with a simple chat interface. A user types "Define quantum computing" and clicks send. Here's what actually happens:

The user sees a clean interface, but there's a whole system working behind the scenes to generate that response.

The Request Flow
When a user submits text, here's the journey that message takes:

- User submits their message through your web interface
- Your server receives the request containing that text
- Your server uses the Bedrock client to make a request to AWS Bedrock
- The request includes the user message and a model ID (like Claude Haiku or Claude Sonnet)
- The chosen model processes the request and generates text
- AWS Bedrock sends back an assistant message containing the generated response
- Your server forwards this response back to the user's browser

🔁 Related lessons
- Next: Making a request
- Previous: Overview of Claude Models
- Same section: Overview of Claude Models · Making a request · Multi-Turn conversations
- Part of paths: Path C
- Reference docs: Glossary · Skills atlas · By use-case
📚 Source & attribution
- Original Anthropic Academy lesson: https://anthropic.skilljar.com/claude-in-amazon-bedrock/276716
- © 2025 Anthropic. Educational fair-use only.