How do I build agentic app experiences?
Asked on 2026-06-13
1 search
To build agentic app experiences with Apple’s Foundation Models framework, the key idea is to think in terms of agents: configurations that act on your app’s behalf with a specific goal, instructions, tools, and model settings.
What to use
Apple’s newer guidance highlights Dynamic Profiles as the main primitive for agentic experiences. A dynamic profile lets you switch the model session into different modes for different stages of your app.
How it works
A good pattern is to break your app into phases, with each phase getting its own profile. For example, in the Craft app shown in the WWDC sessions:
- Analysis mode: inspect user-provided images and record what the model finds
- Brainstorming mode: use what was learned to suggest ideas
- Generation mode: create the final tutorial or output
- Guidance mode: help the user while they work through the task, using in-progress context
Each phase shares some context, but has different priorities, so each can use a different profile with its own:
- instructions
- tools
- model configuration
- generation behavior
Building blocks emphasized by Apple
From the sessions, the main pieces are:
- Dynamic Profiles for agent state and phase-specific behavior
- Dynamic instructions to steer the model for each phase
- Model selection/configuration per phase to use the best capability for each step
- Transcript management and history transforms to control what context carries forward
- Custom modifiers and lifecycle modifiers to adapt behavior over time
- Orchestration patterns like:
- baton-pass
- phone-a-friend
- skills
- Tool calling mode so the agent can take actions in your app
Practical advice
Apple also stresses that the best agentic experiences come from collaborating on the implementation and design first before code is written. In Xcode, that means using agents to explore ideas, plan the feature, refine it, and then orchestrate broader tasks.
Security
If your agent can take actions in the app, you should also think about risk mitigation. Apple recommends threat modeling and adding guardrails, especially for sensitive actions.
In short
Build agentic app experiences by:
- splitting your app into task-focused phases
- defining a dynamic profile for each phase
- giving each profile clear instructions, tools, and model settings
- managing context carefully with transcript/history controls
- using orchestration and tool calling to let the agent act
- designing with safety and user control in mind
The most relevant sessions are:
- Build agentic app experiences with the Foundation Models framework
- What’s new in the Foundation Models framework
- Secure your app: mitigate risks to agentic features
If you want, I can also summarize the Dynamic Profiles API specifically.

Build agentic app experiences with the Foundation Models framework
Learn how to take your intelligence features further with Foundation Models framework primitives for dynamic context and agentic workflows. We’ll walk through engineering shared context, setting up privacy boundaries, and managing key value caching. Discover how to orchestrate smooth handoffs between local and server models.

What’s new in the Foundation Models framework
Explore what’s new in the Foundation Models framework. Learn how to access Private Cloud Compute, integrate third-party and open source models, and work with vision capabilities. Discover context management APIs, built-in semantic search, and powerful primitives for creating agentic experiences in your apps.

Xcode, agents, and you
Learn how you can use coding agents in Xcode in your development process. We’ll explore multiple ways of working with agents with tips to take you from creating an initial prototype to polishing a refined app. Discover how Xcode’s coding assistant adapts to help you stay engaged with the creative work that makes coding fun, whether you’re building an app solo or working with a team.
