Email Channel

Turn your existing Gmail or Microsoft 365 inbox into a fully managed support channel. RapiDesq connects through your provider's secure authorization flow, receives emails in real time through push notifications, and automatically converts them into threaded tickets — complete with contact matching, routing, and delivery tracking.

Overview

The email channel bridges your team's email inbox with the RapiDesq ticketing system. Instead of polling for new messages, RapiDesq uses real-time push notifications from the provider to receive updates the moment a new email arrives. This delivers near-instant ticket creation without the latency and overhead of periodic polling.

At a high level, the flow works like this:

  1. A customer sends an email to your connected inbox (e.g., support@yourcompany.com).
  2. The email provider pushes a notification to RapiDesq in real time.
  3. RapiDesq fetches the full message from the provider's API, including body, headers, and attachments.
  4. The sender is matched to an existing contact by email address, or a new contact is created automatically with the source marked as email.
  5. If the email is a reply within an existing thread, the message is appended to the corresponding ticket.
  6. If the email starts a new thread, a new ticket is created—the subject line becomes the ticket title and the email body becomes the description.
  7. The ticket is routed to a team queue or a conversation flow based on the connection's routing configuration.
  8. Agents reply from RapiDesq, and the response is delivered back to the customer as a standard email from the connected inbox.

Why push, not poll? Push-based delivery eliminates the delay inherent in polling intervals and significantly reduces API quota consumption. Your connected inbox is monitored continuously without RapiDesq making repeated requests to the provider.

Prerequisites

Connecting Gmail

Gmail connections use Google's secure authorization flow with real-time push notifications so new messages arrive instantly.

Step-by-step

  1. Navigate to Admin > Channels > Email.
  2. Click Add Email Account.
  3. Select Gmail as the provider.
  4. Click Authorize with Google. You will be redirected to Google's consent screen.
  5. Sign in with the Gmail account you want to connect and review the requested permissions. RapiDesq requests only the permissions needed to read incoming messages, send replies on behalf of the account, and receive real-time notifications.
  6. Grant the requested permissions. Google issues secure access credentials to RapiDesq.
  7. You are redirected back to RapiDesq. The connection now shows as Active.
  8. Configure routing: choose whether incoming emails should be routed to a Team or a Flow (see Routing Configuration below).
  9. Save the configuration.

How Gmail real-time sync works

Once connected, RapiDesq subscribes to real-time notifications from Google. When a new email arrives, Google pushes a notification to RapiDesq, which then fetches only the new and changed messages. No polling, no redundant downloads, no missed messages.

Security note: Access credentials are encrypted at rest. RapiDesq never stores your Google password. You can revoke the connection at any time from your Google Account's Third-party apps with account access settings, or by clicking Disconnect in RapiDesq.

Connecting Outlook / Microsoft 365

Microsoft connections use Microsoft's secure authorization flow with real-time push notifications so new messages arrive instantly.

Step-by-step

  1. Navigate to Admin > Channels > Email.
  2. Click Add Email Account.
  3. Select Outlook / Microsoft 365 as the provider.
  4. Click Authorize with Microsoft. You will be redirected to Microsoft's login and consent page.
  5. Sign in with your Microsoft account and review the requested permissions. RapiDesq requests only the permissions needed to read incoming messages, send replies on behalf of the account, and receive real-time notifications.
  6. Grant the permissions. Microsoft issues secure access credentials to RapiDesq.
  7. You are redirected back to RapiDesq. The connection shows as Active.
  8. Configure routing: choose Team or Flow routing (see Routing Configuration below).
  9. Save the configuration.

How Microsoft real-time sync works

RapiDesq subscribes to real-time notifications for the connected mailbox. When a new email arrives, Microsoft sends a notification to RapiDesq, which then fetches the new message. The subscription is automatically renewed before it expires — no manual intervention required.

If your organization uses Microsoft 365 with restricted app consent policies, your IT administrator may need to pre-approve the RapiDesq application before you can complete the authorization flow. Ask your admin to grant tenant-wide consent for the required permissions.

Security note: Access credentials are encrypted at rest. Your Microsoft password is never stored. Revoke access any time from the Microsoft Account > App permissions page or by disconnecting from RapiDesq.

Connection Status & Health

Each email connection has a status indicator that reflects the current health of the integration. You can view this on the Admin > Channels > Email page.

Status Meaning Action Required
Active The connection is healthy. Emails are being received and synced in real time. None. The connection is working as expected.
Disconnected The connection has been manually disconnected, or the provider has revoked access. Reconnect the account by re-authorizing through the OAuth flow.
Token Expired The OAuth access token has expired and automatic renewal failed. This can happen if the refresh token was revoked, the user's password changed, or organizational policies blocked re-authorization. Reconnect the account. Navigate to the connection settings and click Reconnect to re-authorize.
Rate Limited The email provider is temporarily throttling API requests from this connection. This is typically transient. RapiDesq automatically backs off and retries. If the status persists for more than an hour, check provider-side quotas or contact support.

Automatic token renewal

Access credentials are automatically refreshed well before they expire, so sync operations are never interrupted under normal conditions. All credentials are encrypted at rest.

Error tracking

RapiDesq tracks when the last successful sync occurred and counts consecutive errors. If errors accumulate — for example, repeated API failures or authorization problems — the connection status transitions accordingly, and the most recent error message is displayed for diagnostic purposes. Once the underlying issue is resolved and a sync succeeds, the error counter resets.

Tip: Check the email connection health dashboard periodically. If you see a connection in Token Expired status, reconnect promptly—no emails will be processed while the connection is in this state, and you may miss customer messages.

How Emails Become Tickets

Understanding the full lifecycle from inbound email to ticket helps you configure routing, diagnose issues, and set expectations for your team.

The inbound email pipeline

  1. Email arrives at the connected inbox (e.g., support@yourcompany.com).
  2. Provider pushes a notification to RapiDesq in real time.
  3. RapiDesq fetches the message, retrieving the full content: headers, body, and attachments.
  4. Contact matching: RapiDesq searches for an existing contact whose email address matches the sender. If no match is found, a new contact is automatically created with the source set to email.
  5. Thread detection: Standard email threading headers are inspected. If they match an existing ticket's email thread, the message is appended to that ticket as a new inbound message.
  6. New ticket creation: If no existing thread is found, a new ticket is created:
    • The email subject becomes the ticket title.
    • The email body becomes the ticket description.
    • The sender is linked as the ticket's contact.
    • Any attachments are stored and linked to the ticket.
  7. Routing: The ticket is routed based on the connection's configuration—either directly to a team queue (Team routing) or into a conversation flow for automated triage (Flow routing).
  8. Agent notification: The assigned team or flow handles the ticket from here. Agents see the new ticket in their queue and can respond directly from RapiDesq.

Contact auto-creation: When a new contact is created from an inbound email, the contact record includes the sender's email address and display name. The contact source is set to email, making it easy to filter and identify contacts that originated from the email channel.

Email Threading

Maintaining conversation threads is essential for keeping context intact across multi-message exchanges. RapiDesq uses standard email threading to track conversations reliably.

How it works

When RapiDesq receives an inbound email, it checks the standard threading information against its records. If the email is a reply to a previous message in an existing ticket, the new message is added to that ticket rather than creating a duplicate.

Agent replies preserve the thread

When an agent composes a reply in RapiDesq, the outbound email includes the correct threading information. The customer sees the response as part of the same email thread in their inbox, and when they reply again the message routes back to the same RapiDesq ticket.

When threading breaks

Thread detection depends on the email client preserving these headers. If a customer starts a fresh email (not a reply) about an existing issue, it will create a new ticket because the headers won't reference the original conversation. Agents can manually merge tickets in this scenario.

Routing Configuration

Each email connection is configured with a routing destination that determines how incoming tickets are handled. RapiDesq supports two routing modes: Team and Flow.

Team routing

Emails are routed directly to a specific team's ticket queue. Agents on that team see the new tickets and can claim or be assigned them according to the team's normal workflow. This mode is straightforward and works well when:

Flow routing

Emails enter a conversation flow, which processes the ticket through automated steps before it reaches an agent. Conversation flows can perform automated triage—categorizing tickets, setting priority, collecting additional information, or routing to different teams based on conditions. Use Flow routing when:

Changing the routing mode

  1. Navigate to Admin > Channels > Email and select the connection.
  2. Under Routing, choose Team or Flow.
  3. Select the target team or the conversation flow from the dropdown.
  4. Save the configuration. New emails will use the updated routing immediately; existing tickets are not affected.

Tip: You can start with Team routing for simplicity and switch to Flow routing later as your volume grows or your triage requirements become more complex. The switch is instant and does not affect existing tickets.

Outbound Email & Delivery Tracking

When an agent replies to a ticket that originated from the email channel, the response is sent as an email from the connected inbox back to the customer. This keeps the conversation in a familiar channel for the customer while giving agents the full power of RapiDesq's ticketing interface.

Sending replies

Agents compose replies in the RapiDesq ticket view. The reply is sent using the connected email account's credentials (via the provider API), so the customer receives it from the same address they originally emailed. The outbound message includes the correct threading headers to maintain the conversation thread in the customer's inbox.

Delivery status tracking

Every outbound email message is tracked through a delivery lifecycle:

Status Description
Pending The message has been queued for delivery and is being sent to the email provider's API.
Delivered The provider accepted the message for delivery. The email has been sent to the recipient's mail server.
Failed The send attempt failed. This may be due to a provider API error, an authentication issue, or a network problem. Check the connection status and retry.
Bounced The email was rejected by the recipient's mail server. Common causes include an invalid email address, a full mailbox, or the recipient's server blocking the message.

Delivery status is visible on each outbound message within the ticket timeline. If a message fails or bounces, agents can review the error details and take corrective action—for example, verifying the contact's email address or retrying the send.

Attachments

Agents can attach files to outbound email replies. Attachments are also preserved on inbound emails — when a customer sends an email with attachments, they are stored and linked to the ticket for easy access from the ticket detail view.

Note: The Delivered status indicates that the email provider accepted the message. It does not guarantee that the email reached the recipient's inbox—it may still be filtered by the recipient's spam filters or security policies.

Tips & Best Practices

Security summary: RapiDesq never stores email passwords. All access credentials are encrypted at rest. Connections use the minimum required permissions. You can revoke access at any time from the provider's account settings or from RapiDesq. Access tokens are automatically refreshed well before they expire.

To disconnect an email account, navigate to Admin > Channels > Email, select the account, and click Disconnect. This revokes access, stops the real-time notification subscription, and halts ticket creation from that inbox. Existing tickets and their message history are not affected.