The useAgentIntegrations hook manages third-party integrations (like Google Drive, Slack, etc.) for AI agents, including OAuth consent URL generation and integration removal.
interface AgentIntegration { id: string; // Unique identifier for the integration name: string; // Display name of the integration integration_type: string; // Type of integration (e.g., "google_drive", "slack") agent_id: string; // ID of the associated agent is_active: boolean; // Whether the integration is currently connected connection_metadata?: Record<string, any>; // Additional connection details}
Show ConsentURLResponse
Copy
interface ConsentURLResponse { consent_url: string; // URL to redirect user to for OAuth consent state: string; // OAuth state parameter for security expires_in: number; // Number of seconds until the consent URL expires}