OpenAI Agent Builder
Connect Lemonado to OpenAI Agent Builder using Model Context Protocol
Secure MCP Integration: OpenAI Agent Builder now supports Model Context Protocol through secure token authentication, enabling direct access to your Lemonado data.
Overview
OpenAI Agent Builder allows you to create custom AI agents with access to external tools and data sources. By connecting Lemonado via MCP, your agents can query databases, SaaS tools, and analytics platforms in real-time.
Prerequisites
- OpenAI account with access to Agent Builder
- Active Lemonado AI Connector with MCP endpoint configured
- API access token (generated from Lemonado)
Setup Instructions
Step 1: Generate Lemonado Access Token
- Log in to your Lemonado dashboard
- Navigate to your AI Connector settings
- Click Generate Access Token
- Copy the bearer token (it will only be shown once)
- Save it securely - this token never expires unless regenerated
Important: Store your access token securely. If compromised, regenerate it immediately from your Lemonado dashboard.
Step 2: Configure OpenAI Agent Builder
- Go to your agent in OpenAI Agent Builder
- Click Add Tool → MCP Server
- Choose + Server in the top right
- Fill in the server details:
- Paste your Lemonado bearer token in the authentication field
- Click Connect to save the configuration
Step 3: Test the Connection
- In your agent's chat interface, try a test query:
"List all available data sources from Lemonado"
- If successful, your agent will return information from your Lemonado AI Connector
Capabilities
With Lemonado connected to your OpenAI agent, you can:
Data Access
- Query any connected database or SaaS platform
- Access real-time synchronized data
- Filter and search across multiple data sources
- Retrieve specific records and datasets
Analytics & Reporting
- Generate custom reports from your data
- Perform aggregations and calculations
- Analyze trends and patterns
- Create data visualizations
Multi-Source Queries
- Combine data from multiple sources
- Cross-reference information
- Build comprehensive dashboards
- Track metrics across platforms
Security & Best Practices
Token Management
Security Notice: Access tokens provide full access to your AI Connector data. Treat them like passwords.
- Never share your access token publicly or commit it to version control
- Regenerate tokens immediately if compromised
- Use separate tokens for different agents or environments
- Monitor usage in your Lemonado audit logs
- Revoke access by regenerating the token
Access Control
- Configure data permissions in your Lemonado AI Connector settings
- Use data filtering to limit what data your agents can access
- Set up read-only access for security
- Monitor all agent queries in real-time
Rate Limiting
- OpenAI enforces rate limits on API calls
- Plan your agent's query patterns accordingly
- Consider caching frequently accessed data
- Monitor your Lemonado usage dashboard
Advanced Configuration
Multiple AI Connectors
You can add multiple Lemonado AI Connectors to a single agent:
- Create separate AI Connectors in Lemonado for different data sources
- Generate a unique access token for each connector
- Add each as a separate MCP server in OpenAI Agent Builder
- Give each a descriptive name (e.g., "Lemonado-Sales", "Lemonado-Analytics")
Custom Agent Instructions
Optimize your agent's data access by including specific instructions:
When querying Lemonado:
1. Always specify date ranges for time-series data
2. Use filters to limit result sets
3. Request only the fields you need
4. Handle empty results gracefully
Troubleshooting
Authentication Failed
-
Verify token is correct
- Check for extra spaces or characters
- Ensure you copied the complete token
- Regenerate if unsure
-
Token expired or revoked
- Generate a new token in Lemonado
- Update the token in OpenAI Agent Builder
- Note: Tokens don't expire unless manually regenerated
Connection Issues
- Check MCP server URL: Ensure
https://mcp.lemonado.io/mcpis entered correctly - Verify AI Connector status: Confirm your AI Connector is active in Lemonado
- Test from Lemonado: Try querying your data directly in Lemonado first
No Data Returned
- Verify data sources are connected in your Lemonado AI Connector
- Check data sync status - ensure recent sync was successful
- Review permissions - confirm the AI Connector has access to required data
- Test query syntax - verify your agent is using correct query format
Next Steps
- Explore AI Connector configuration options
- Learn about data source connections
- Review security best practices
- Join our community for agent templates and examples
Need Help?
- Visit our documentation
- Contact support at support@lemonado.io
- Check the MCP documentation