QuestionQ6

VerifiedSecuring and governing agentic workflows

You are developing an enterprise customer support agent in Customer Experience Agent Studio (CX Agent Studio). The agent handles an order cancellation workflow that requires customer identity verification before invoking an external payment refund tool. During testing, when end users submit complex, multi-sentence requests, the agent frequently skips the intermediate identity verification step and calls the refund tool prematurely.

You need to configure the agent’s behavior to enforce strict, sequential execution of every workflow step.

What should you do?

Explanation

Restructuring agent instructions with XML tags can help the model follow a task flow with explicit steps, triggers, and actions. The instructions can specify that identity verification must succeed before the refund tool is called. XML improves instruction adherence but does not guarantee enforcement; a refund tool should also validate authorization independently. (docs.cloud.google.com)

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!