Learn how to extend your agents with webhook tools, functions, and app integrations
Sheet1
(or your preferred sheet)
Map the columns to variables:
{{name}}
{{email}}
{{company}}
{{timestamp}}
{{source}}
Variables explained: The{{variableName}}
syntax creates placeholders that your agent will fill in. When the agent calls this integration with{name: "Sarah", email: "sarah@techcorp.com"}
, those values replace the variables.
capture-lead
SHEETS_INTEGRATION_ID
= your Google Sheets integration IDSLACK_INTEGRATION_ID
= your Slack integration IDfn_capture123
)lead_collector
capture_lead
https://app.kapso.ai/api/v1/functions/YOUR_FUNCTION_ID/invoke
(Replace with your function ID from Step 3)POST
functions/capture-lead.js
:
agent.py
: