Set up OAuth connections to Google, Slack, and other popular services
{{variableName}}
{{startTime}}
{{endTime}}
{{eventTitle}}
Calendar ID: primary Time Min: {{timeMin}} Time Max: {{timeMax}} Single Events: true Order By: startTime
from kapso.builder.nodes.subagent import WebhookTool # Add to your SubagentNode subagent.add_tool(WebhookTool( name="send_slack_message", url="https://app.kapso.ai/api/v1/integrations/YOUR_INTEGRATION_ID/invoke", http_method="POST", headers={"X-API-Key": "#{KAPSO_API_KEY}"}, description="Send message to Slack", body_schema={ "type": "object", "properties": { "channelName": {"type": "string"}, "messageText": {"type": "string"} } } ))
curl -X POST https://app.kapso.ai/api/v1/integrations/YOUR_INTEGRATION_ID/invoke \ -H "X-API-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "timeMin": "2024-03-20T09:00:00Z", "timeMax": "2024-03-20T17:00:00Z" }'
{ "kind": "calendar#events", "items": [ { "id": "event123", "summary": "Team Meeting", "start": { "dateTime": "2024-03-20T10:00:00Z" }, "end": { "dateTime": "2024-03-20T11:00:00Z" } } ] }
Was this page helpful?