Skip to main content

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

ConnectorDescription
MongoDBNative MongoDB driver integration
REST APIHTTP client for external API calls
EmailSMTP and transactional email services
StorageFile storage (S3, GCS, local)
QueueMessage 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.