Connectors
Integrate external services and APIs into your Logic Bee workflows.
Overview
Connectors are pre-built integrations that let your hooks communicate with external systems — databases, APIs, message queues, and more — through a unified interface.
Available Connectors
| Connector | Description |
|---|---|
| MongoDB | Native MongoDB driver integration |
| REST API | HTTP client for external API calls |
| SMTP and transactional email services | |
| Storage | File storage (S3, GCS, local) |
| Queue | Message queue integration (Redis, SQS) |
Using a Connector
@LogicHook({
event: 'send-welcome-email',
collection: 'notifications',
})
export class SendWelcomeEmailHook {
async run(context) {
const { email, name } = context.body;
await context.connectors.email.send({
to: email,
subject: 'Welcome to the platform!',
template: 'welcome',
data: { name },
});
return { success: true };
}
}
Creating Custom Connectors
You can build your own connectors by implementing the Connector interface and registering them in your configuration.
More examples coming soon.