---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://segmentstream.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Start workflows when production deployments finish

Workflows can react to successful or failed production deployments of their own workspace.

A failed production deployment can now start a workflow in that workspace—for example, one that tells your team which deployment needs attention. A successful deployment can start a different workflow, such as a post-deploy check.

Tell the coding agent you build with: “When a production deployment fails, start a workflow that tells our operations chat and includes the failure reference.” The event contains identifiers and failure codes, so your workspace supplies the message text. This first release covers production deployment success and failure, not pipeline job-run events or preview deployments. Repeated delivery does not start a second run for the same trigger and event.
