Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Ask the User Before You Act: Human-in-the-Loop Questions for AI Agents with Spring AI

Описание и применение

Поток работы, в котором агент ByteChef запрашивает у пользователя уточняющие вопросы перед выполнением задачи, предотвращая неверные предположения и повторную работу.

Задача

AI agents often act without user confirmation, leading to incorrect assumptions and rework.

Результат

The workflow ensures agents only act after receiving explicit user answers, eliminating guesswork and rework.

Рабочий процесс

  • Receive chat request
  • AI Agent calls AskUserQuestionTool with 1‑4 questions
  • ByteChef sends questions to chat as ask_user_question event
  • User answers via chat
  • ByteChef resumes workflow with answers
  • AI Agent generates plan and replies

Доказательства

The Ask User Question Tool lets a ByteChef AI Agent stop and ask the user 1 to 4 multiple-choice questions before it acts.

Источник

When the agent calls the tool, ByteChef sends the questions to the chat as an ask_user_question event.

Источник

In a deployed workflow, the questions come with a resume URL and the workflow suspends. It isn't holding a thread. The run is persisted and can wait up to 30 days.

Источник

  • Дата записи: 2026-11-02T01:29:07.184Z