Office 365 Email
You can configure your bot to communicate with users via Microsoft Office 365 email. By configuring your bot to access an email account, it receives a message when a new email arrives. This enables the bot to use email as a channel for responding to user inquiries. In response to a user's email message, the bot could send an email reply.
The Email channel currently works with Office 365 only, other email services aren't currently supported.
Prerequisites
- You built and published a DRUID chat bot.
-
A dedicated Office 365 email account for the bot that uses the Modern authentication (OAuth) as authentication type. Reach out to your company's email administrator to get the Office 365 email account of the bot. You need it to configure the Email channel in the DRUID Platform.
-
In the browser, log in any Microsoft 365 product with the Office 365 email account of the bot.
Configuring the Office 365 Email channel
To configure the Office 365 Email channel in the DRUID Platform, follow these steps:
- In the DRUID Portal, select the bot, go to the bot details page and click on the Channels tab.
- Click on the Email section header. The section expands.
- In the Email address field, enter the dedicated Office 365 email account for the bot and click Authorize.
- The 'Sign in to your account' pop-up opens.
- Sign in with the dedicated Office 365 email account for the bot.
- On successful login, a page opens with a validation code. Copy the validation code.
- In the DRUID Portal, in the Code field, enter the validation code you just copied to finish authorizing the bot email address.
- Click the Publish button. The channel activation might take up to 1 minute.
After the channel’s activation, the following fields are available in DRUID:
- [[ChatUser]].ChannelId = "email"
- [[ChatUser]].UserId - Stores the email address of the sender.
Inactivating the Office 365 Email channel
To inactivate the channel, follow these steps:
- Click Authorize and sign in with the dedicated Office 365 email account for the bot.
- After a successful login, a page will display a validation code. Copy the validation code.
- In the DRUID Portal, paste the copied validation code into the Code field to complete the authorization of the bot's email address.
- Click Delete Channel to inactivate the channel.