Skip to content

Connectors Reference

Connectors are external accounts and data sources that a user links to Configure. Gmail, Calendar, Drive, and Notion are connectors. Model-callable functions are tools.

Use profile.tools() to expose connector-backed tools to a model, and profile.executeTool() to run tool calls. Connector tools are never included by default.

ts
const tools = profile.tools({
  connectors: ["gmail", "calendar", "drive", "notion"],
});

Supported Connectors

ConnectorTool namePurpose
Gmailconfigure_gmail_searchSearch connected email when explicitly enabled.
Calendarconfigure_calendar_getRead connected calendar events when explicitly enabled.
Driveconfigure_drive_searchSearch connected files when explicitly enabled.
Notionconfigure_notion_searchSearch connected Notion pages when explicitly enabled.

Connector results depend on user consent and account connection state. If a connector is enabled for the runtime but the user has not connected that account, executeTool() returns a connector error instead of silently falling back to profile memory.

Actions

Actions can change external state, so they are opt-in separately from connector reads.

ts
const tools = profile.tools({
  actions: ["email.send", "calendar.create_event"],
});
ActionTool namePurpose
email.sendconfigure_email_sendSend email after your application has collected user approval.
calendar.create_eventconfigure_calendar_create_eventCreate a calendar event after user approval.

profile.executeTool() rejects action tools that were not enabled for the current profile runtime handle.

Personalization infrastructure for agents