Contact Agent (Sub-Workflow)
Sub-workflow for managing contact data, designed to be invoked by other workflows and to provide controlled read and write access to a central contact list.
This sub-workflow acts as a dedicated contact agent that is executed by higher-level workflows. It encapsulates all logic related to retrieving and creating contacts and exposes this functionality as a reusable building block.
When triggered externally, the agent processes the incoming parameters using a language model and determines whether existing contacts should be retrieved from a Google Sheets–based contact store or whether new entries should be added. Decision logic, model reasoning, and tool execution are intentionally kept separate to ensure clarity and maintainability.
Successful executions and error cases are handled through explicit branching, allowing parent workflows to clearly distinguish between response and retry paths. This makes the agent well-suited for integration into larger, agent-based automation setups without introducing unnecessary coupling or duplicated logic.
