Let’s Get Certified
Module 08 / 14 · AI agents

Gate topics and actions on verified state

Select standard or custom capabilities and control when an agent may use them.

Gate topics and actions on verified state

Work through the decision

A standard record lookup meets the team’s needs. Issuing a repair authorization, however, requires a custom business rule and a verified claim. How should the builder configure the agent?

Check your reasoning

Reuse the standard action where its behavior fits. Wrap the approved authorization process in a custom action, define its inputs and outputs, and expose it within a clearly scoped topic or subagent. Bind a trusted claim identifier, apply a filter to the action and enforce authorization in the underlying flow or service.

Watch the source lesson at 1:05:32

Compare the choices

Action filter
Make a capability available only when explicit conditions on trusted state hold. Reinforce the rule at the operation boundary.
Template expression
Reference or evaluate variables in scripted conditions, instructions and inputs. Check the expression against missing and unexpected values.
Standard action
Reuse a supplied capability when its contract already satisfies the job. Verify its permissions, supported objects and outputs.
Custom action
Expose a specific flow, Apex operation or other supported implementation with a clear contract when built-in behavior is insufficient.
Topic classification and scope
Specify when a standard or custom topic should be selected and what the agent must do inside it. Test overlapping descriptions using ambiguous utterances.

Test the decision

Try the same request before verification, after verification and after a claim has expired. Inspect what the agent is permitted to choose at each step. An instruction to be careful cannot substitute for a deterministic check on availability and permissions.

Practice the guide skills

  1. Gate a replacement action using a verified identity and eligibility flag. Evaluate the filter and a variable-based expression for false, missing and true values. Watch 1:05:32
  2. Choose a standard lookup and a custom authorization flow. Write their input contracts and topic scopes, then route two similar requests to check for ambiguity. Watch 1:07:55

Official objectives for this lesson

Related lesson · Test the trigger and both approval branches

Knowledge check

Gate topics and actions on verified state quiz

Answer 3 questions. Check each answer for an explanation.