Attach tools
Now let’s add some tools!
Tools give the agent access to external actions or data, capturing data, hanging up the call, or searching for internal information. You will need to reference the tools inside the prompt for the agent to make use of them. By combining structured language, variables, and tool access, the prompt gives the agent everything it needs to operate autonomously and compliantly. Tools extend the functionality of your agent by allowing it to perform actions beyond just speaking. For this workflow, there are three tools used: hangup
, append_google_sheet_row
, and get_current_datetime
.
hangup - Ends the call. It should be used after a final statement like “Thank you, have a great day,” and only when the conversation is complete.
get_current_datetime - Returns the current date and time. This is useful if your prompt logic needs to confirm deadlines or timestamp entries.
append_google_sheet_row - Allows the agent to save structured information, such as outcomes, contact names, or notes, into a connected Google Sheet for reporting and follow-up. The tool is a simple way to log structured information into a connected Google Sheet. It demonstrates how data can be recorded during or after a call - for example, saving the provider’s name, whether the patient was verified, or the outcome of the chart request.
This setup is useful for prototyping or testing. It’s essentially a substitute for posting the same data to a real backend system. In production environments, you would typically replace this with an API call to your internal services or EHR integration. It provides a lightweight way to validate your workflow and agent behavior before full integration.