# Creating A Microsoft Teams Enterprise Workbot
This guide uses the Microsoft Teams Developer Portal (opens new window) to create and manage an app. As of January 1, 2022, Microsoft will be deprecating App Studio.
The approach outlined in this guide is the new, recommended method, but the App Studio instructions have been retained for reference.
Enterprise Workbots are Microsoft Teams apps you create that can leverage the Workato bot platform under the hood. You can fully customize your bot's identity, such as:
- Branding (bot name, bot logos, accent color)
- Custom OAuth profile (bot ID, App secret)
These Microsoft Teams apps can be sideloaded into your Microsoft Teams groups or channels for use by your members. If you want control over your bot's branding and permissions or multiple purpose-specific bots, Enterprise Workbots are for you.
# Setup Requirements
To set up an Enterprise Bot, you need:
The following in Workato:
- Access to:
- Workbot. If you don't see the Tools > Workbot option in your account, contact your Customer Success Manager.
- Custom OAuth profiles. If you don't see the Tools > Custom OAuth Profiles option in your account, contact your Customer Success Manager.
- Privileges that allow you to:
- Create and configure Workbots.
- Create and configure Custom OAuth Profiles.
- Access to:
One of the following roles in your Microsoft organization:
- Application administrator
- Cloud application administrator
- Global administrator
- Privileged role administrator
Check your role assignments in Microsoft (opens new window) by navigating to Users > You (select your name) > Assigned roles.
# Step 1: Create The Workbot In Workato
Sign in to your Workato account.
Navigate to Tools > Workbot.
Click the Custom bot tab, then + New custom bot.
In the Application field, select Workbot for Microsoft Teams.
In the Name field, enter a name for the bot.
Click Create new app. You'll be redirected to the Microsoft Teams Developer Portal (opens new window).
Keep this page open - you'll need it to complete the setup for your bot.
# Step 2: Create A Microsoft Teams App
# Step 2.1: Create The App
Sign in to the Microsoft Teams Developer Portal (opens new window).
On the Apps page, click + New app.
Fill in the following fields:
- Short description
- Long description
- Developer info
- App URLs
Fill in Application (client) ID (not to be confused with App ID) and click Save. This info be found in the Azure portal (opens new window) under App registrations > Your app > Overview.
Under Branding, set up the branding for the bot.
# Step 2.2: Create The Bot In Microsoft Teams
In your Microsoft Teams account, navigate to the Tools (opens new window) page.
Navigate to Bot management and click + New Bot.
Enter a name for the bot and click +Add. We recommend using the same name as your app to avoid confusion.
Once the bot is created, copy the Bot ID from the page's URL. It will be similar to the following:
Keep this info somewhere handy - you'll need it to complete the setup in Workato.
In the Client secrets section, click Add a client secret for your bot.
Copy the secret and keep it handy - you'll need it to complete the setup in Workato.
# Step 3: Configure Workato To Talk To The App
Navigate back to the Workato page from Step 1.
In the Step 3 section, fill in the following fields:
Here's where they can be found in the Microsoft Teams Developer Portal (opens new window)
Expand the Step 4 section and copy the bot endpoint address. It should look something like this:
Keep this handy - you'll need it to complete the next step.
# Step 4: Configure The App To Talk To Workato
- Step 4.1: Configure the bot's endpoint address
- Step 4.2: Define bot permissions
- Step 4.3: Whitelist Workato's domain
- Step 4.4: Configure Authentication Redirect URLs
# Step 4.1: Configure The Bot's Endpoint Address
Navigate back to the MS Teams Developer Portal.
Navigate to Tools > Bot management > Your bot > Configure.
Paste the bot endpoint address from the previous section.
# Step 4.2: Define Your Bot's Features
From the left navigation bar, navigate to Apps/Your app.
Under App features, click Bot.
Select your newly created bot from the dropdown menu.
Under What can your bot do, check Upload and download files.
Click Add a command.
Define the following:
- Command: Enter
- Description: Enter
Type 'help' to view available commands
- Scopes: Check
# Step 4.3: Whitelist Workato's Domain
Navigate back to the Apps/Your app page.
Under Domains, click Add a domain and enter
# Step 4.4: Configure Authentication Redirect URLs
Navigate to your Azure portal (opens new window).
In the search bar, enter
App Registration and select the result.
On the page that displays, click on your bot.
From the left navigation bar, click Authentication.
Under Platform configurations, click +Add a platform/Web.
Enter the following redirect URI:
Click Save, located near the top of the page.
# Step 5: Publish To Your Org
In the top navigation bar of your Azure portal, click Publish and select Publish to your org.