Back to catalog / Agent workflows
Route high-risk expenses for manager approval
Process expense events; let rules handle low-value claims and pause high-risk claims for a manager decision.
Goal
Process expense events; let rules handle low-value claims and pause high-risk claims for a manager decision.
Steps
- Publish a synthetic expense event and route low/high values with deterministic rules. [source-google-route-expense-for-manager-approval]
- Pause high-risk cases at RequestInput and show the risk rationale and source fields. [source-google-route-expense-for-manager-approval]
- Verify approve/reject test paths; production payment needs separate authorization. [source-google-route-expense-for-manager-approval]
How to verify
Replay one low-value and one over-threshold expense; verify the route, event ID, and manager input on the paused case.
Troubleshooting
If a high-value claim does not pause, check the rule node’s currency and threshold; deduplicate repeated approval events by event ID before replaying.
Permissions
Prerequisites
- Google ADK, Pub/Sub test topic, synthetic expenses, approval test UI; use an isolated cloud project.
Permissions
- The sample reads expense events in an isolated Pub/Sub project and writes high-risk cases to an approval workflow; it does not connect to real payment rails.
Limitations
Run the source on isolated test data, then check outputs and dependency versions before adapting it.
Pinned upstream source
- Repository
- google/adk-samples
- File path
- core/python/ambient-expense-agent/README.md
- Pinned commit
9252494a7aaafca8fe4d81a04f15392345a5779b- Source checked
- 2026-10-14 · Reviewed against the pinned upstream source
Repository metrics
These values describe the upstream repository, not popularity or likes for an individual skill or playbook.
- Stars
- Not collected
- Forks
- Not collected
- Observed at
- Not collected
No metrics snapshot is available yet.
License: Apache-2.0
Main topic
Turn ecommerce campaign materials into a reviewable weekly brief