Skip to main content

Setting up HocNota as an Azure Bot

To improve HocNota's integration into your workflow, you can integrate it into Microsoft Teams. This lets you submit a job and track its progress without going through the web interface.

HocNota prerequisites

Before configuring the bot, you need to set up the Azure connection.

Enable the Bot, then retrieve the "Messaging Endpoint" (https://xxxxx.com/api/messages).

Registering the bot in the Azure portal

Go to your organization's Azure portal (https://portal.azure.com/)

In the search bar, search for "All resources" to open the resource manager

01-resources.png

Click "+ Create"

02-create.png

In the list of available resources, search for "Azure bot", then click "Create".

03-search azure bot.png

Enter the registration information

  • Bot handle: name of the bot
  • Subscription: select the subscription to use for the bot
  • Resource group: HocNota (or the name used during the HocNota connection setup)
  • Data residency: data location

Once filled in, confirm with Review + Create, then Create to finish creating the Bot.

03.1-search azure bot.png

Click "Go to resource"

05-go to resource.png

Select "Configuration" on the left

07-configuration.png

Enter the Messaging Endpoint retrieved from the HocNota interface, then apply the change.

Retrieve the Microsoft App ID

Then click "Manage Password" to create a Secret for the Bot

08-Message-endpoint + app ID + manage password.png

As with the Azure connection, set a Secret for the Bot

Select "+ New client secret"

06-new-secret.png

09-client secret.png

Retrieve the Client secret value

09.1-client secret.png

Go back to the Bot configuration using the link at the top of the page

09.2-retour-config.png

then go back to the resource management page with the "Go to resource" button, as at the beginning of the tutorial.

Set up a communication channel for the Bot using the "Channels" section on the left.

10-channels.png

Search for "Microsoft Teams" in the list and click on it.

11-Microsoft teams.png

Select the value that best fits your organization, then apply.

12-Apply.png

Configuring the Azure Bot in HocNota

In the HocNota Admin interface (System -> Azure AD), Microsoft Teams Bot section

Enter the App ID and the key value retrieved during the bot configuration.

12.1-Config HocNota.png

You can then download the bot with the "Download Teams package" button.

Configuring the Teams Admin portal

Open the Teams admin interface (https://admin.teams.microsoft.com)

Go to app management

Open "Teams apps" -> "Manage apps"

14-admin teams - manage apps.png

In the top right, select "Actions" then "+ Upload new app"

15-admin teams - upload new app.png

Upload the package downloaded in the previous step.

Once the upload is complete, you can close the window.

Go to the security configuration via the "Setup policies" section

16-admin teams - setup policies.png

Select the Global policy

17-admin teams - Global.png

Allow "Upload custom apps"

18-admin teams - Upload custom apps.png

The bot is now available in Teams

Setting up Teams

Now that everything has been configured server-side, each user in the organization can find the HocNota bot directly in Teams as follows.

Click the "+" button to open app management

19- teams - Apps.png

Then, under "Added by your org" or "Built for your org"

20- teams - Added by your org.png

You'll find the HocNota app (the logo may change from one version to another); select it and click "Add".

21- teams - open.png

The HocNota bot is now available in the side bar.

23- Chat.png

See also the reference page: Teams Connection (Azure Bot).