OnboardingYakDocumentation
DocsAI and MCP
AI AND MCP

AI-assisted workflows

Give AI agents clear instructions for editing, validating, publishing, and analyzing onboarding.

Ask an agent to edit a flow#

Connect the MCP server, identify the app, and describe the desired change. Ask the agent to preserve existing screen IDs and unrelated content.

Example request
For Daily Ritual, inspect the current draft and add a short screen explaining the benefit before the permission screen. Keep existing screen IDs and answer variables. Save as a draft, then summarize the changes. Do not publish.
  1. The agent calls list_apps and identifies the app ID.
  2. It reads the draft with get_draft and notes its revision.
  3. It edits only the requested screens and calls validate_flow.
  4. It saves with save_draft and the original baseRevision.
  5. You review the draft in Studio and publish when ready.

Ask for an analytics review#

Use a time period and decision question. The MCP analytics tool currently returns the app’s last 30 days, so ask the agent to make that scope explicit and distinguish counts from rates.

Example request
Compare starts, completions, and completion rate for Daily Ritual over the last 30 days. Identify the screen with the largest drop between views and completions. State the counts, and suggest one test without changing the flow.

Add an image or video#

Ask the agent to use create_asset_upload for a local asset. It returns an upload URL and a public URL. The agent uploads the bytes with the matching MIME type, then adds the public URL to the flow.

For video, ask it to confirm the app has expo-video installed and a renderVideo prop configured. A flow edit alone cannot add a native video player to your app.

Publishing workflow#

Publishing changes what connected devices receive. Ask for a draft and summary first, review it, then explicitly request publication if it is approved. Published versions remain in history and can be rolled back.