Integrations (Apps)
Connect your AI Builder applications to external systems, databases, and services
Integrations (Apps) allow your AI Builder applications to connect with external systems, databases, APIs, and services. This connectivity is essential for creating AI solutions that work within your existing technology ecosystem and deliver real business value.
Integration Fundamentals
AI Builder supports various integration approaches:
- API Integrations: Connect to external services via REST, GraphQL, or other API protocols
- Database Connections: Access and manipulate data in various database systems
- Webhook Mechanisms: Receive and send event notifications to external systems
- File System Operations: Read, write, and process files in various formats
- Authentication Systems: Connect with identity providers and SSO solutions
- Marketplace Apps: Pre-built integrations installed from the app marketplace
Each type serves different integration needs and scenarios.
AI Builder supports various integration approaches:
- API Integrations: Connect to external services via REST, GraphQL, or other API protocols
- Database Connections: Access and manipulate data in various database systems
- Webhook Mechanisms: Receive and send event notifications to external systems
- File System Operations: Read, write, and process files in various formats
- Authentication Systems: Connect with identity providers and SSO solutions
- Marketplace Apps: Pre-built integrations installed from the app marketplace
Each type serves different integration needs and scenarios.
AI Builder integrations follow a modern, secure architecture:
- Isolation: Each integration operates in its own secure context
- Authentication: Secure credential management and authentication flows
- Authorization: Fine-grained access control to integration capabilities
- Monitoring: Comprehensive logging and performance tracking
- Error Handling: Robust error management and recovery mechanisms
This architecture ensures reliable, secure integrations with external systems.
Integrations can be implemented through:
- Built-in Instructions: Using pre-built automation instructions for common integration patterns
- Marketplace Apps: Installing pre-configured integration apps
- Custom Development: Creating specialized integration logic with code
- API Configuration: Setting up connections to external APIs and services
- Authentication Setup: Configuring secure access to protected resources
The flexibility of implementation approaches accommodates various technical requirements.
API Integrations
HTTP Connections
Connect to external APIs using HTTP requests.
HTTP integration supports:
- Methods: GET, POST, PUT, DELETE, PATCH
- Headers: Custom headers for authentication and metadata
- Query Parameters: URL parameters for request configuration
- Request Bodies: JSON, XML, form data, and other formats
- Response Handling: Processing various response formats and status codes
HTTP is the foundation for most modern API integrations.
Authentication Setup
Configure secure authentication for API access.
Authentication methods include:
- API Keys: Simple key-based authentication
- OAuth 2.0: Token-based authentication flow
- Basic Auth: Username/password authentication
- JWT: JSON Web Token authentication
- Custom Schemes: Specialized authentication mechanisms
Proper authentication ensures secure access to protected resources.
Data Transformation
Process data between your application and external APIs. Transformation capabilities include:
- Format Conversion: Between JSON, XML, CSV, and other formats
- Field Mapping: Align field names and structures
- Data Filtering: Include only relevant information
- Aggregation: Combine data from multiple sources
- Normalization: Standardize data formats and values
Transformation ensures compatibility between systems with different data models.
Error Handling
Implement robust error management strategies. Error handling approaches:
- Status Code Handling: Respond to different HTTP status codes
- Retry Logic: Attempt failed requests again
- Fallback Strategies: Alternative approaches when integrations fail
- Error Logging: Record detailed error information
- User Feedback: Provide appropriate information to users
Effective error handling creates resilient integrations that gracefully handle failures.
Database Integrations
Connect to various database systems to work with structured data:
Connect to SQL databases such as:
- MySQL
- PostgreSQL
- SQL Server
- Oracle
- SQLite
Example configuration for a PostgreSQL connection:
Connect to SQL databases such as:
- MySQL
- PostgreSQL
- SQL Server
- Oracle
- SQLite
Example configuration for a PostgreSQL connection:
Connect to document, key-value, and graph databases:
- MongoDB
- Cosmos DB
- Redis
- Cassandra
- Neo4j
Example configuration for a MongoDB connection:
Connect to specialized vector databases for AI applications:
- Pinecone
- Weaviate
- Milvus
- Qdrant
- ChromaDB
Example configuration for a Pinecone connection:
Webhook Integrations
Implement event-driven integrations with external systems:
Authentication & Authorization
Secure your integrations with robust authentication and authorization:
Authenticate with external services:
- API Keys: Simple key-based authentication
- OAuth 2.0: Token-based authentication with various flows
- Authorization Code
- Client Credentials
- Resource Owner Password
- Implicit Flow
- Bearer Tokens: Token-based authentication
- Basic Authentication: Username/password encoded in headers
- Custom Authentication: Specialized methods for specific services
Authenticate with external services:
- API Keys: Simple key-based authentication
- OAuth 2.0: Token-based authentication with various flows
- Authorization Code
- Client Credentials
- Resource Owner Password
- Implicit Flow
- Bearer Tokens: Token-based authentication
- Basic Authentication: Username/password encoded in headers
- Custom Authentication: Specialized methods for specific services
Securely store and use sensitive credentials:
- Workspace Secrets: Store sensitive values
- Reference Notation:
{{secrets.KEY_NAME}}
syntax - Access Control: Restricted visibility of secret values
- Version History: Track credential changes
- Environment Separation: Different secrets per environment
Control access to integration capabilities:
- Role-Based Access Control: Limit integration usage by role
- Scopes: Fine-grained permissions for API access
- IP Restrictions: Limit integration access by network
- Rate Limiting: Control usage frequency
- Usage Quotas: Set limits on integration usage
File System Integrations
Work with files in various storage systems:
Marketplace Integration Apps
Accelerate integration with pre-built marketplace apps:
Browsing Available Apps
Explore the integration apps in the marketplace.
The marketplace provides:
- Categorized integration listings
- Detailed descriptions and capabilities
- User ratings and reviews
- Documentation and examples
- Version history and updates
Installing Integration Apps
Add integrations to your workspace.
The installation process:
- Select the desired app from the marketplace
- Review permissions and capabilities
- Approve the installation
- Configure app-specific settings
- Set up authentication if required
Configuring Integration Apps
Set up the integration for your specific needs. Configuration typically includes:
- Connection settings (endpoints, hosts)
- Authentication credentials
- Default behavior options
- Logging and monitoring preferences
- Feature toggles and limitations
Using Integration Components
Leverage the integrated functionality in your workspace. Integration apps provide:
- Custom blocks for UI integration
- Automation instructions for backend integration
- Events for integration state changes
- Documentation on usage patterns
- Examples for common scenarios
Popular Integration Categories
Productivity & Collaboration
Connect with common workplace tools:
Microsoft 365 (Outlook, Teams, SharePoint)
Google Workspace (Gmail, Drive, Calendar)
Slack
Zoom
Trello, Asana, Monday.com
CRM & Sales
Integrate with customer relationship platforms:
Salesforce
HubSpot
Dynamics 365
Zendesk
Pipedrive
Data & Analytics
Connect to data platforms and analytics tools:
Snowflake
Databricks
Power BI
Tableau
Looker
Enterprise Systems
Integrate with core business systems:
SAP
Oracle ERP
ServiceNow
Workday
NetSuite
Developer Tools
Connect with development and DevOps platforms:
GitHub
GitLab
Jira
Azure DevOps
Bitbucket
AI & Machine Learning
Integrate with AI and ML services:
OpenAI
Azure Cognitive Services
Google Vertex AI
Hugging Face
AWS AI Services
Creating Custom Integrations
For specialized requirements, develop your own integrations:
Create integrations using existing automation capabilities:
- Combine HTTP requests with data transformations
- Set up authentication flows
- Implement error handling and retries
- Create event-based integration patterns
- Build data synchronization processes
This approach requires no coding but may be limited for complex scenarios.
Create integrations using existing automation capabilities:
- Combine HTTP requests with data transformations
- Set up authentication flows
- Implement error handling and retries
- Create event-based integration patterns
- Build data synchronization processes
This approach requires no coding but may be limited for complex scenarios.
Develop integrations with JavaScript/TypeScript:
- Use the full power of programming languages
- Implement complex business logic
- Leverage npm libraries for integration
- Create sophisticated data processing
- Optimize performance for specific needs
This approach provides maximum flexibility for complex integration requirements.
Package integrations as reusable apps:
- Create self-contained integration packages
- Include both UI components and backend logic
- Provide configuration interfaces
- Enable easy deployment across workspaces
- Share with other teams or organizations
This approach is ideal for integrations that will be used repeatedly across projects.
Integration Best Practices
Security First
Prioritize security in all integrations:
Use secure authentication methods
Store credentials in workspace secrets
Implement the principle of least privilege
Validate and sanitize all inputs
Encrypt sensitive data in transit and at rest
Error Resilience
Build robust error handling:
Implement appropriate retry strategies
Create circuit breakers for failing services
Log detailed error information
Provide meaningful error messages
Have fallback options for critical paths
Performance Optimization
Ensure efficient integration operations:
Use connection pooling for databases
Implement caching where appropriate
Process large datasets in batches
Use asynchronous operations when possible
Monitor and optimize slow integrations
Monitoring & Logging
Maintain visibility into integration health:
Log key integration events
Track performance metrics
Set up alerts for integration failures
Monitor usage patterns and quotas
Implement audit trails for sensitive operations
Versioning Strategy
Manage integration changes safely:
Plan for API version changes
Test integrations before upgrading
Maintain backward compatibility
Document integration requirements
Implement graceful degradation
Data Governance
Respect data policies and regulations:
Understand data residency requirements
Implement data minimization principles
Follow retention policies
Handle PII according to regulations
Document data flows for compliance
Integration Troubleshooting
AI Knowledge Webhook Integration
Implementing advanced integrations with AI Knowledge requires AI Builder and subscription to specific webhook events. This advanced functionality enables custom RAG pipelines and sophisticated AI agent behaviors.
AI Builder enables powerful integration with AI Knowledge through webhooks:
Subscribe to document events to enhance the knowledge base:
- documents_created: Triggered when new documents are added
- documents_updated: Triggered when documents are modified
- documents_deleted: Triggered when documents are removed
Example use cases:
- Custom document processing pipelines
- Content enrichment with additional metadata
- Advanced document validation
- Integration with document management systems
Subscribe to document events to enhance the knowledge base:
- documents_created: Triggered when new documents are added
- documents_updated: Triggered when documents are modified
- documents_deleted: Triggered when documents are removed
Example use cases:
- Custom document processing pipelines
- Content enrichment with additional metadata
- Advanced document validation
- Integration with document management systems
Intercept and enhance user queries:
- queries: Triggered when users ask questions
Response options:
- Return custom chunks for context inclusion
- Generate complete prompts for the LLM
- Provide entire answers, bypassing the LLM
- Override AI parameters for specific queries
Example use cases:
- Custom retrieval strategies
- Multi-step reasoning pipelines
- Integration with specialized knowledge sources
- Query routing to different processing paths
Customize the testing and evaluation process:
- tests_results: Triggered for each test case execution
Response options:
- Provide custom analysis of test results
- Return context and answer scores
- Implement specialized evaluation criteria
Example use cases:
- Domain-specific evaluation metrics
- Integration with quality management systems
- Custom test analytics and reporting
- Comparative analysis across models
Next Steps
Was this page helpful?