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:
- A customer sends an email to your connected inbox (e.g.,
support@yourcompany.com). - The email provider pushes a notification to RapiDesq in real time.
- RapiDesq fetches the full message from the provider's API, including body, headers, and attachments.
- The sender is matched to an existing contact by email address, or a new contact is created automatically with the source marked as email.
- If the email is a reply within an existing thread, the message is appended to the corresponding ticket.
- 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.
- The ticket is routed to a team queue or a conversation flow based on the connection's routing configuration.
- 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
- Admin access to your RapiDesq workspace. Only administrators can connect and configure email channels.
- A Gmail or Microsoft 365 email account that you have permission to authorize with third-party applications. For organizational accounts, your IT administrator may need to pre-approve RapiDesq in the identity provider.
- Permission to authorize third-party access to your mailbox. RapiDesq obtains delegated access through the provider's secure authorization flow — your email password is never shared with or stored by RapiDesq.
- At least one team or conversation flow configured in RapiDesq to receive the incoming email tickets.
Connecting Gmail
Gmail connections use Google's secure authorization flow with real-time push notifications so new messages arrive instantly.
Step-by-step
- Navigate to Admin > Channels > Email.
- Click Add Email Account.
- Select Gmail as the provider.
- Click Authorize with Google. You will be redirected to Google's consent screen.
- 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.
- Grant the requested permissions. Google issues secure access credentials to RapiDesq.
- You are redirected back to RapiDesq. The connection now shows as Active.
- Configure routing: choose whether incoming emails should be routed to a Team or a Flow (see Routing Configuration below).
- 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
- Navigate to Admin > Channels > Email.
- Click Add Email Account.
- Select Outlook / Microsoft 365 as the provider.
- Click Authorize with Microsoft. You will be redirected to Microsoft's login and consent page.
- 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.
- Grant the permissions. Microsoft issues secure access credentials to RapiDesq.
- You are redirected back to RapiDesq. The connection shows as Active.
- Configure routing: choose Team or Flow routing (see Routing Configuration below).
- 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
- Email arrives at the connected inbox (e.g.,
support@yourcompany.com). - Provider pushes a notification to RapiDesq in real time.
- RapiDesq fetches the message, retrieving the full content: headers, body, and attachments.
- 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.
- 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.
- 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.
- 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).
- 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:
- You have a small or specialized support team that handles all emails from a given inbox.
- Manual triage is preferred, or the volume is low enough that agents can manage assignment themselves.
- You want tickets to appear immediately in the team's queue with no intermediate processing.
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:
- You receive high email volume and need automated categorization or priority assignment.
- Different types of emails should be routed to different teams based on content, sender domain, or other criteria.
- You want to send an automated acknowledgment to the customer before an agent picks up the ticket.
- You need to collect structured data or run conditional logic before routing to a human.
Changing the routing mode
- Navigate to Admin > Channels > Email and select the connection.
- Under Routing, choose Team or Flow.
- Select the target team or the conversation flow from the dropdown.
- 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
-
Use a dedicated support email address.
Connect a purpose-built email (e.g.,
support@yourcompany.com) rather than a personal inbox. This keeps support traffic separate from individual correspondence, makes team transitions seamless, and prevents personal emails from becoming tickets. - Monitor connection health proactively. Check the email connection status regularly on the Admin > Channels > Email page. A connection that falls into Token Expired or Disconnected status will silently stop receiving emails. Set up a process to check connection health daily, especially after organizational password resets or security policy changes.
- Use Flow routing for high-volume inboxes. If an inbox receives dozens or hundreds of emails per day, Flow routing with a conversation flow enables automated categorization, priority assignment, and conditional routing to different teams—reducing manual triage and improving response times.
- Use Team routing for small, focused teams. When a dedicated team handles all emails from an inbox and volume is manageable, Team routing is simpler to configure and puts tickets directly into the team's queue with no intermediate steps.
- Reconnect promptly after token expiration. If a connection enters the Token Expired state, reconnect as soon as possible. While the connection is down, inbound emails accumulate in the inbox but are not synced to RapiDesq. Once reconnected, the incremental sync mechanism will catch up on missed messages.
- Understand threading behavior. Educate your team on how email threading works. If a customer sends a new email about an existing issue (rather than replying to the thread), it will create a new ticket. Agents should be aware of the ticket merge capability for these situations.
- Review bounced and failed messages. Periodically check for outbound messages with Failed or Bounced delivery status. A bounced message means the customer never received your reply. Verify the contact's email address and resend if needed.
- For Microsoft 365 organizations: pre-approve the app. To avoid per-user consent prompts, have your Azure AD administrator grant tenant-wide consent for the RapiDesq application. This streamlines the connection process for anyone on your team who needs to authorize an inbox.
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.