Start building your own chatbot now

A bot is the easiest way to communicate and get answers to frequently asked questions. Users get a response immediately and organizations can support their customers 24×7.

Unlike other bots that are available on business web pages and provide visibility only to the customers visiting their site, a Skype bot is available as all-in-one communication service on all the major platforms like Android, iOS, Windows, and macOS.

Using the SAP Conversational AI bot building platform, we created a step-by-step integration process so that it takes only a few minutes to deploy your chatbot to Skype and allow users to chat with it. The best way to learn anything new is to try hands-on, so let’s dive in!

Step 1: Create a chatbot with SAP Conversational AI bot building platform

The first step is to create a chatbot in SAP Conversational AI. To begin with, create an account in the platform (It’s absolutely free!). You can follow this easy tutorial on “How To Build Your First Bot With SAP Conversational AI” in order to build a basic chatbot.
Once it’s ready, come back to this page.

Step 2: Create an account in Microsoft Azure (for Skype integration)

To integrate your bot to Skype, you need to create an account in Microsoft Azure. Microsoft offers:

  • 12-month free service for first-time users.
  • $200 free credit to experiment with any Azure service in your first 30 days
  • 25+ always free products

Once you’ve created an account, return to this page for further steps.

Step 3: Bot registration in Microsoft Azure

1. Login to your Microsoft Azure account here.

2. Click “Create a resource” on the top left corner of the screen.

create-resource-microsoft azure

3. Search for “Bot Channels Registration”.

bot-channels-registration-microsoft-azure

4. Click “Create” to start the creation process.

creation-process-bot-channels-registration

5. Provide the information in the Bot Service dialog as specified in the following figure and click “Create“. Note that the “Messaging endpoint” needs to be filled later.bot-channels-registration-azure

Field Name Input Value Description
Bot Name Your bot’s display name Provide a display name for the bot that appears in channels and directories. This name can be changed at anytime.
Subscription Your subscription Select the Azure subscription you want to use.
Resource Group myResourceGroup Create a new resource group or choose from an existing one.
Location East Asia Choose a location near where your bot is deployed.
Pricing Tier F0 Select a pricing tier. You may update the pricing tier at any time. There are two pricing tiers: Free and Standard.
Messaging endpoint URL Enter the URL for your bot’s messaging endpoint (needs to be filled later)
Application Insights On Decide if you want to turn Application Insights On or Off.
Microsoft App ID and password Auto create App ID and password Use this option if you need to manually enter a Microsoft App ID and password. Otherwise, a new Microsoft App ID and password will be created for you in the bot creation process.

The notification icon displays if the bot creation has been successful.  The notifications will change from “Deployment in progress” to “Deployment succeeded”.

If you face the error “Resource provider ‘Microsoft.Insights’ not registered for the subscription”, then do the following:

  • In the Azure Portal, browse “Subscriptions” > “Select your subscription” > “Resource Providers” (under Settings).
    Here you can see the registration status of the provider. It should be “Registered”.

free-trial-azure-resource-providers

6. Get your “App ID” and “Client Secret”.

  • For the “App ID”, navigate to the dashboard and select your resource. Go to “Settings” > Get “Microsoft App ID”.

settings-azure-microsoft-app-id

  • For Client Secret, click “Manage” next to the “Microsoft App ID”. This link opens a window where you can generate a new password.
  • Copy the “Microsoft App ID” and password.

Step 4: Connect SAP Conversational AI and Azure with the Bot Connector

1. Login to SAP Conversational AI and select your bot. Navigate to the “Connect” tab.

2. Click Skype.

bot-connector-sap-conversational-ai-azure-skype-bot

3. In the pop up, enter the “Microsoft App ID” and Password that you had generated. Click “Connect“. You will receive a Messaging endpoint.

bot-connector-skype-bot

4. Copy the endpoint.

bot-connector-endpoint-skype-bot

5. Go to your Azure account > select your resource > navigate to settings > enter the “Messaging endpoint” under configuration that you copied from SAP Conversational AI.

settings-microsoft-azure-bot

6. Save the changes.

Step 5: Test your bot

You can now test your bot on Microsoft Azure by clicking on the tab “Test in Web Chat”.

test-web-chat-microsoft-azure

You can also monitor your log feed in SAP Conversational AI under the “Monitor” tab, using the Bot Analytics capability of the bot platform.

monitor-bot-data-analytics

Step 6: Connect your bot to channels like Skype

By default, your chatbot is only connected to the Webchat channel in Microsoft Azure.

1. To add Skype, go to “Dashboard” > Select your resource > Navigate to the “Channels” tab > Select Skype.

connect-channels-sap-chatbot-microsoft-azure

2. A new window appears > Navigate to “Publish” Tab > Click “Save”.

channels-skype-contacts

3. Add the bot to your Skype contacts by navigating to channels > Select “Skype”. In the new window, click “Add to Contacts”.

connect-skype-bot-sapA new contact will be added to your Skype and you can start chatting 😊

skype-bot-chat-sap-conversational-ai

Congratulations! You now have a Skype bot, powered by SAP Conversational AI!

Hope you enjoyed this tutorial. If you have any questions about it, feel free to ask us in the comments section below or go to SAP Answers.

Happy bot building 🤖

Want to build your own conversational bot? Get started with SAP Conversational AI !

Follow us on
  • Partha

    Thanks Vijayalakshmi for sharing your experience. nice!
    Many of our customers need ms skype/teams as the conversational AI channel.
    But here the challenge is how to get the logged in user info in our service/SAP CAI layer so that we can take it forward for user authorization in backend?

    As per the documentation we can get the user info using object {{participant_data}}
    But I guess ms skype is not providing anything there.

    So what should be the possible solution here?

    Thanks!
    Partha

    • Vijayalakshmi G

      Hi Partha,
      Azure has IAM option where you can create roles, deny assignments etc. Have you explored this option?

      Regards,
      Vijayalakshmi

  • Rodrigo Perez Luna

    what a surprise this blog! really exited with all this info. I am a newbie but I hope be able to contribute soon.

  • Navin

    Hi Vijayalakshmi, its an interesting blog !
    I have a general question. Is it possible for the bot to accept an attachment as input ? image/files ?

    • Vijayalakshmi G

      Hi Navin,

      You can send an image as a response to the query. Emojis can be accepted and it works as well. Though I have not tried sending image /file as an input.

      Regards,
      Vijayalakshmi

  • Anonymous

    Hi,

    Are you talking about Skype or Skype for Business? Support for Skype for Business will be discontinued for new bots as of September and Skype has a restricted number of users (25). Microsoft is pushing everybody to MS Teams.

    Best regards,

    Francesco

  • Frank

    Hi,
    really nice article.
    But when I read the headline first, I immediately thought: cooool, no I can talk to my chatbot – instead of writing. So far I saw above only the chatting by typing with the bot in skype. Is there are a possibility of automatic voice to text when asking the bot and text to speech when it is answering?
    Would be awesome!
    Best regards,
    Frank

This site uses Akismet to reduce spam. Learn how your comment data is processed.