diff --git a/guides/ai-agents/ai-writeback.mdx b/guides/ai-agents/ai-writeback.mdx index 986e274f..fe719ff2 100644 --- a/guides/ai-agents/ai-writeback.mdx +++ b/guides/ai-agents/ai-writeback.mdx @@ -80,7 +80,13 @@ Clean up our metrics. Make the orders model better. ``` -When the pull request is ready, the agent posts the URL in the thread. Open it, review the diff, and merge as you would any other pull request. After merging, refresh dbt in Lightdash (or let your CI/CD do it) so the change takes effect. +When the pull request is ready, the agent posts a **View pull request** button in the thread. Open it, review the diff, and merge as you would any other pull request. After merging, refresh dbt in Lightdash (or let your CI/CD do it) so the change takes effect. + +### Preview the change before merging + +If your dbt repository's CI runs `lightdash preview` on pull requests, a **View preview** button appears next to **View pull request** as soon as the preview project is published. Use it to jump straight into a Lightdash preview of the proposed change and confirm it looks right before merging. + +The button only shows once the preview is ready — if your repository doesn't publish a preview, or it hasn't finished yet, you'll just see **View pull request**. ## What happens if it can't run