OmniDim Logo

    Custom API Integration Guide

    Learn how to create and configure custom API integrations to extend your agent's capabilities with external services and databases.

    1. Overview

  1. Custom API integration allows your agent to connect with any external service, database, or API endpoint.
  2. This enables your agent to fetch real-time data, authenticate users, or perform actions with third-party services during conversations.
  3. 2. Key Benefits

  4. Connect to any REST API endpoint
  5. Real-time data retrieval during conversations
  6. User authentication and verification
  7. Database queries and data management
  8. Third-party service integration
  9. Custom business logic implementation
  10. 3. How to Create Custom API Integration

  11. Navigate to your agent's edit page
  12. Go to the Integrations tab
  13. Under Connect New Integrations, find 'Custom API' and click Connect
  14. Fill in the API configuration details
  15. Test your API endpoint
  16. Save and attach to your agent
  17. 3. How to Create Custom API Integration

    4. Configuration and Testing

  18. Integration Name: Enter a descriptive name (e.g., 'Supabase Authentication')
  19. Description: Provide clear description of what the API does and when to use it
  20. API URL: Enter the complete endpoint URL
  21. HTTP Method: Select GET, POST, PUT, or DELETE
  22. Click 'Add Header' to include required headers
  23. Add body params or query params if needed
  24. Click on next to move to the next step and test your API and save the integration
  25. 4. Configuration and Testing

    5. Example: Supabase User Authentication

    Let's walk through creating a complete Supabase authentication integration step by step.

  26. Add Integration Name and Description
  27. Make sure descriptions are clear and concise. It will help ai to understand the integration and how to use it
  28. Add API URL , HTTP Method , and add the query params for the request
  29. Make sure AI Generated is enabled for the query params , it will help ai to generate the query params from the conversation
  30. Click on next to move to the next step and test your API and save the integration
  31. Supabase custom API integration

    Supabase custom API integration

    Supabase custom API Testing

    Supabase custom API Testing

    6. Other Examples

    Here are additional examples of custom API integrations:

  32. CRM Integration: Retrieve customer data from Salesforce or HubSpot
  33. Inventory Management: Check product availability in real-time
  34. User Verification: Authenticate users against internal databases
  35. Weather Data: Fetch current weather information for location-based services
  36. Booking Systems: Check availability and make reservations
  37. 7. Best Practices

  38. Write clear, descriptive integration names descriptions , query params or body params
  39. Use AI Generated to generate the query params or body params
  40. Test thoroughly with various input values