Skip to content

External system integrations

The Swiss AI Hub connects with external systems through four integration patterns.

Integration approaches

1. Direct agent API calls

Agents can call external APIs (REST, SOAP, GraphQL, etc.) directly from their workflow steps using standard Python HTTP libraries like httpx or aiohttp. During execution, agents make API calls as part of their logic, process responses, and incorporate the results into their outputs.

This works well for simple, single-operation API calls within agent workflows. An agent might retrieve customer data from a CRM during conversation, submit form data to an external portal after user approval, or query a ticketing system to answer questions. The Agent Developer README has implementation patterns and examples.

2. Platform API integration (external systems calling in)

External systems can trigger Swiss AI Hub agents through the Agent Interaction REST API. The API authenticates incoming HTTP requests, translates them into internal events, and streams agent responses back as structured results.

This approach fits bidirectional integrations where external systems need to trigger AI capabilities. A document portal might trigger AI classification when files are uploaded, a web application might request AI-generated summaries for its dashboard, or an external workflow system could delegate analysis tasks to AI agents.

3. Data pipeline integration (batch synchronization)

Data Pipelines continuously synchronize data from external systems into Swiss AI Hub knowledge bases. Dagster pipelines connect to external data sources, extract and transform the data, then load it into Swiss AI Hub where it's indexed for RAG (Retrieval-Augmented Generation). Pipelines can run on schedules or be triggered by events.

This handles read-heavy integrations where AI primarily analyzes external data, large-scale document indexing, or scheduled data synchronization from enterprise systems. You might sync SharePoint documents nightly into a knowledge base, continuously ingest support tickets for trend analysis, or import product catalogs on a schedule for customer service agents.

4. MCP integration (development tools)

Model Context Protocol (MCP) lets AI coding assistants like Claude Code, Gemini CLI, and Cursor interact with Swiss AI Hub during development. This provides read-only observation of platform state for development and debugging workflows.

Choosing the right approach

ApproachLatencyDirectionComplexityBest for
Direct agent API callsReal-timeOutboundLowSimple API calls within agent logic
Platform API integrationReal-timeInboundMediumExternal systems triggering AI
Data pipeline integrationBatchInboundMedium-HighLarge-scale data sync, knowledge bases
MCP integrationReal-timeBidirectionalLowDevelopment tools only

Network and security considerations

Outbound connectivity (for direct agent API calls and pipelines)

The Swiss AI Hub VM needs outbound HTTPS (port 443) access to external systems. Configure firewall rules to allow outbound connections to specific endpoints. The platform supports API keys, OAuth tokens, and certificate-based authentication. All external connections use encrypted HTTPS.

Network Requirements has more details.

Inbound connectivity (for platform API integration)

External systems connect to Swiss AI Hub using standard HTTPS (port 443). Authentication options include OAuth 2.0, API keys, or Azure AD integration. Traefik reverse proxy provides built-in rate limiting protection, and Let's Encrypt handles automatic certificate management for TLS termination.

Network Security covers the security architecture.

General integration principles

Match your integration approach to latency, volume, and direction requirements. Deploy Swiss AI Hub in Switzerland if you need Swiss data residency. Use TLS encryption, RBAC, and comprehensive audit logging. Leverage enterprise SSO through OAuth 2.0, SAML, or Azure AD. Configure proper firewall rules for inbound and outbound connectivity. Follow Swiss Data Protection guidelines.

Built with ❤️ in Switzerland 🇨🇭