# Agentic workflows in Elasticsearch: pause an AI agent for human approval, resume 72 hours later

DevFeed: [Agentic workflows in Elasticsearch: pause an AI agent for human approval, resume 72 hours later](<https://devfeed.tech/articles/agentic-workflows-in-elasticsearch-pause-an-ai-agent-for-human-approval-resume-72-hours-later-78715.md>)

Original publisher: [Read original article](<https://www.elastic.co/search-labs/blog/ai-agent-orchestration-human-approval-workflow>)

Author: Alex Salgado

Published: 2026-09-21T00:00:00Z

Content type: tutorial

Language: en

Sources: [Elasticsearch Labs](<https://devfeed.tech/sources/elasticsearch-labs.md>)

Topics: [elasticsearch](<https://devfeed.tech/topics/elasticsearch.md>), [agentic workflows](<https://devfeed.tech/topics/agentic-workflows.md>), [human review](<https://devfeed.tech/topics/human-review.md>), [Loop Engineering](<https://devfeed.tech/topics/loop-engineering.md>)

Tags: [agent-orchestration](<https://devfeed.tech/tags/agent-orchestration.md>), [agentic-ai](<https://devfeed.tech/tags/agentic-ai.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [elasticsearch](<https://devfeed.tech/tags/elasticsearch.md>), [index-data](<https://devfeed.tech/tags/index-data.md>), [operations](<https://devfeed.tech/tags/operations.md>), [workflows](<https://devfeed.tech/tags/workflows.md>)

## AI overview

This tutorial demonstrates an Elasticsearch workflow for diagnosing failed data ingestion and remediating it with AI agents while keeping human approval at key steps. Workflow state and audit records persist in Elasticsearch, allowing an approval gate to wait for up to 72 hours before resuming. The example includes alert-triggered diagnosis, approval or revision, automated reindexing, and a final verification or escalation decision.

## Source excerpt

Build AI agent orchestration where the workflow waits for a human approval and then executes the fix on its own, with nothing extra to provision and the whole decision trail queryable in Elasticsearch.