← Back to all guides

Email & Calendar Tools — Workspace Productivity

Langoedge Team3 min read

What are the Email & Calendar Tools?

Langoedge provides a robust set of tools to integrate your AI agents directly with Google Workspace (Gmail) and Microsoft 365 (Outlook). These tools allow agents to manage communication channels, draft correspondence, download file attachments, and organize schedules dynamically.

[!IMPORTANT]
Prerequisite: Active Account Connection Required
Before your AI agents can read or send emails or interact with calendar events, you must connect your Google Workspace (Gmail) or Microsoft Office 365 (Outlook) account on the Connect Page.
If these credentials are not connected, any graph node invoking these tools will fail at runtime.


1. Gmail Integration Tools

Attach these tools to enable your agents to act as virtual email assistants.

Tool Name Parameters Description
find_in_gmail query Searches Gmail messages matching a query (supports standard search operators).
create_gmail_draft to, subject, body Creates an email draft in the connected account without sending it.
send_gmail_email to, subject, body Sends an email immediately to the recipient.
delete_gmail_email email_id Deletes a specified email message.
download_gmail_attachment attachment_id, message_id Downloads files attached to an email.
list_gmail_labels None Lists all folder labels in the Gmail account.
add_gmail_labels_to_email email_id, labels Adds labels to group email threads.
remove_gmail_labels_from_email email_id, labels Removes labels from an email.

2. Outlook Email & Calendar Tools

Integrate Microsoft Outlook email folders and calendar schedules to automate appointment booking.

Email Actions

Tool Name Parameters Description
find_outlook_email query Searches Outlook messages using keyword matching.
create_outlook_draft to, subject, body Creates a draft email in the user's drafts folder.
send_outlook_email to, subject, body Sends an email through the connected Outlook SMTP account.
delete_outlook_email email_id Deletes the specified Outlook email.
list_outlook_folders None Lists available directories inside the account.

Calendar Actions

Tool Name Parameters Description
create_outlook_calendar_event subject, start_time, end_time, attendees Schedules a calendar event and invites attendees.
get_outlook_calendar_schedule start_time, end_time Retrieves free/busy schedules within a date range to check availability.

Technical Security Note

All email and calendar integrations require authorization via OAuth 2.0. Users must connect their Google Workspace or Microsoft Office 365 accounts on the Connect Page. All access tokens are encrypted at rest and are restricted solely to the tools invoked during graph executions.


Frequently Asked Questions

Can the agent send emails automatically?
Yes. If the agent executes the `send_gmail_email` or `send_outlook_email` tool, the email is dispatched instantly. For human-in-the-loop workflows, configure the agent to use `create_gmail_draft` so a human team member can review the email before sending.
How does the agent know my calendar availability?
By invoking `get_outlook_calendar_schedule` with a start and end time, the agent receives a list of blocked time slots, enabling it to suggest free slots to customers.
LT

Langoedge Team

The Langoedge engineering team builds AI agent infrastructure that empowers businesses to deploy reliable, observable AI staff. Follow Langoedge Team on LinkedIn for product updates and architectural deep dives.