Connectors
Connectors are integrations with external services that your agents can use as tools. When an agent has a connector attached, it can read from and write to that service -- searching emails, creating GitHub issues, posting Slack messages, and more.
Available connectors (17)
Communication
- Slack (
slack) -- read channels, post messages, manage threads; OAuth or bot token - Discord (
discord) -- bot integration for servers and DMs - Telegram (
telegram) -- bot messaging with inline buttons and media - Twilio (
twilio) -- SMS, voice calls, and WhatsApp messaging; Account SID + Auth Token + phone number
Email & Calendar
- Gmail (
gmail) -- read, search, draft, and send emails; Google OAuth or app password - Google Calendar (
google-calendar) -- read and create events, check availability
Docs & Storage
- Google Drive (
google-drive) -- access files and manage permissions - Google Sheets (
google-sheets) -- read and write spreadsheet data - Notion (
notion) -- access databases and workspace content; integration token
Dev Tools
- GitHub (
github) -- repositories, issues, pull requests; OAuth or personal access token - Linear (
linear) -- issue tracking and project management; API key - Jira (
jira) -- issue tracking and agile management; email + API token + domain - Sentry (
sentry) -- error tracking and performance monitoring; auth token - Vercel (
vercel) -- deployment management and project config; access token
CRM & Sales
- HubSpot (
hubspot) -- CRM contacts, deals, and marketing; API key - Salesforce (
salesforce) -- CRM platform with full API access; username + password + security token
Commerce
- Stripe (
stripe) -- payments, subscriptions, and billing; secret key
webSearch session flag.Setting up a connector
OAuth-based connectors
Most connectors (Gmail, Google Calendar, Slack, GitHub, Notion) use OAuth for authentication. The setup flow is:
- Navigate to Settings > Connectors in the dashboard
- Click the connector you want to enable
- Click Connect -- you will be redirected to the service's OAuth consent screen
- Authorize access and you will be redirected back to Lantern
- The connector is now available and can be attached to any agent
API key-based connectors
Some connectors (Web Search, custom APIs) use API keys instead of OAuth. For these:
- Navigate to Settings > Connectors
- Click the connector and select Manual credentials
- Enter your API key or credentials
- Click Save -- credentials are encrypted at rest using your tenant's encryption key
Per-agent connector assignment
Connectors are enabled at the account level but assigned per agent. This means:
- You connect your Gmail account once in Settings
- For each agent, you choose which connectors it can access
- An agent can only use connectors explicitly assigned to it
To assign connectors to an agent:
- Open the agent's detail page in the dashboard
- Go to the Configuration tab
- In the Connectors section, toggle the connectors this agent should have access to
- Click Save
How agents use connectors
When an agent runs, its assigned connectors are injected as tools that the LLM can call. For example, an agent with the Gmail connector can:
// The agent's LLM can call these tools automatically:
ctx.tools.gmail.search({ query: "from:boss@company.com subject:urgent" })
ctx.tools.gmail.draft({ to: "team@company.com", subject: "Summary", body: "..." })
ctx.tools.github.createIssue({ repo: "org/repo", title: "Bug: ...", body: "..." })The LLM decides when to use each tool based on the agent's system prompt and the user's input. You do not need to write code to invoke connectors -- just assign them and the LLM handles the rest.
Connector permissions
Each connector requests the minimum set of permissions (OAuth scopes) needed for its functionality. You can review the exact permissions on the connector's detail page in Settings.
- Gmail -- read and send email (not delete)
- GitHub -- read repos, issues, PRs; create issues and comments
- Slack -- read channels, post messages, manage threads