Skip to main content

Email Processing

UCS enables email processing in contact center mode, meaning multiple email mailboxes are handled by agents, including support for skills, language proficiencies, CRM communication tracking, etc.

Architecture

ObjectDescription
E-mail queueEmail processing takes place in one or more queues.
E-mail sourceRetrieves emails from a mailbox and delivers them to a queue.
E-mail senderHandles sending replies to emails.

Receiving Emails

Each E-mail source fetches exactly one mailbox using the IMAP or POP3 protocol and delivers emails to exactly one queue.

Google OAuth

The preferred method for authenticating to a mailbox is via the OAuth mechanism (IMAP XOAuth). Authorizing access to the mailbox is performed through UCS itself, by signing in with the corresponding Google account. Configuration is done in the Google Cloud Console:

  1. APIs & Services
  2. Add a new project using the Add Project button
  3. Select Overview in the left menu and on the displayed page click Configure
  4. Complete the setup by clicking the Create button
  5. Select Clients in the left menu
  6. Click + Create client in the top menu
  7. Save the Client ID and Client secret from the OAuth client created dialog.
  8. In the Data Access section, click the Add or remove scopes button
  9. Select Manually add scopes: https://mail.google.com/ (then click Add to table and then Update)

Then proceed to the UCS administration:

  1. Select ☰ System → SSO providers.
  2. Click + add SSO provider and enter the parameters:
    • Type: Google OAuth
    • Client ID: 123456789-copiedClientId.apps.googleusercontent.com
    • Client secret: GABCDEF-copiedClientSecretFromGoogleCloudConsole
    • Scope: https://mail.google.com/
  3. Click Insert.
  4. In the list of SSO providers, click 🔑 and sign in with the email mailbox user account.
  5. Note the Google OAuth provider ID (it is displayed in the dialog title when editing).
  6. Navigate to ☰ Messaging → Email sources.
  7. Click + add email source and enter the parameters:
  8. Click Insert.
info

If you need to monitor multiple mailboxes, you must create multiple Google OAuth SSO providers that share the same Client ID and Client secret (only one OAuth project will exist in Google). In UCS, a separate Google OAuth SSO provider will be created for each mailbox, and the 🔑 sign-in will be performed for that specific mailbox.

Sending Emails

For sending emails from a given address, one E-mail sender is created, which can be used across multiple queues.

Google OAuth

The preferred method for authenticating the email sender is via the OAuth mechanism (SMTP XOAuth). You can reuse an existing Google E-mail source or add one using the same procedure.

  1. Navigate to ☰ Messaging → Email senders.
  2. Click + add email sender and enter the parameters:
  3. Click Insert.