is your personal security policy management assistant. provides quick and easy access to core functionality from the comfort of your organization's existing chat platforms, including Desktop, Web, or Mobile options. is supported for Slack, Microsoft Teams, and both online and on-premises versions of Skype for Business.

To deploy , first install on your chat platform, and then on your server.

prerequisites and deployment configurations

As a Chat Bot, AlgoBot has to be notified of any new messages that the users may send over one of the supported chat platforms. To integrate with your organization's chat platforms, your system must meet the following prerequisites:

Internet access

The server must be able to access the internet and the chat platform servers.

Verify also that you have the following connectivity:

For Microsoft Teams






  • *

For Slack

  • *

For Cisco Webex


Unauthenticated proxies are supported if needed.

For details, see the diagrams below: [%=General.AlgoBot%] with no proxy | [%=General.AlgoBot%] with a proxy

Permissions You must have administrator privileges and access to authorize on your chat platform.
DNS The Central Manager must be configured with DNS.
Installation files To obtain installation files, contact support.
with no proxy

with a proxy

Install AlgoBot on Slack

Install on your Slack workspace to chat with on Slack. You must be a Slack Administrator to perform this procedure.

  1. Click this link to Slack or navigate to to install AlgoBot on Slack.

  2. Click Add to Slack. You are prompted to authorize the AlgoSec Slack App.
  3. Click Allow.

    is authorized on Slack, and the following keys and values are displayed:

    • BOT_ID
  4. Click Export to CSV to download these values and save them for later use.

Continue with Install [%=General.AlgoBot%] on the [%=General.ProductName-Short%] server.

Install AlgoBot on Microsoft Teams

Use the Microsoft App Studio app to install on Teams.

  1. On Microsoft Teams, must use webhooks to be notified about new messages.

    Use one of the following options to configure to accept webhook tunnels from the internet:

    Install and configure ngrok

    ngrok is a useful tool to create secure tunnels to locally hosted applications using a reverse proxy. Microsoft recommends ngrok in their documentation.

    ngrock Subscription Levels:

    • The Basic level provides a stable custom endpoint. For example, during ASMS upgrades and reboots, Teams will maintain endpoint settings. The Basic level is recommended for a production environment.

    • Using the Free level, the endpoint needs to be manually updated after ASMS upgrades and reboots. The Free level is more suitable for a demo/testing environment.

    Pricing: See ngrok pricing (for Basic level).

    Install and configure ngrok for use with

    1. Download ngrok for Linux from the ngrok download page to your ASMS machine.

    2. Extract to the /home/afa folder.

    3. On the ngrok website, log in to your ngrok subscription.

    4. On the Authentication tab, select Your Authtoken sub-tab.

      Copy the Authtoken script from the Command Line section:

      ./ngrok authtoken <Your Authtoken>

      Paste to the command line on the ASMS machine, and run the command.

    5. For the Basic subscription, run the following command using a unique name for the subdomain:

      ./ngrok http -subdomain=<unique name> 5000

      For example, ngrok http -subdomain=algobot.companyName 5000

      For the Free subscription level, run the following command:

      ./ngrok http 5000

    6. Note the https endpoint provided by ngrok, and save it for later.

    Install and configure TunnelRelay

    TunnelRelay is a Microsoft OpenSource project to allow bots running from internal networks to respond to messages from Microsoft Teams.

    • Requirements: Admin access to a Microsoft Azure subscription.
    • Pricing: Volume-based pricing by Azure. For more details, see the TunnelRelay README .

    TunnelRelay cannot currently run on machines directly. Instead perform this procedure on machines directly. Instead perform this procedure on another Linux machine (version must be supported by TunnelRelay). The machine you use should have access to a web browser.

    Install and configure TunnelRelay for use with .

    1. In Azure, create a new relay and give it a logical name. Select any region available for your new relay.
    2. Download the latest TunnelRelay.Console v2 binary file for your operating system from GitHub .
    3. Open a command line, and navigate to the folder that holds the TunnelRelay.Console executable.
    4. Run the TunnelRelay.Console executable. Follow the on-screen instructions to enable TunnelRelay and connect it to your Azure subscription.

      Use your Microsoft Azure credentials to log TunnelRelay into your account. Select the relay you created in step a.

    5. Set TunnelRelay to forward webhook requests to your machine, running , with port 5000.
    6. Note the webhook endpoint provided by TunnelRelay, and save it for later.

    Continue with step 2.

  2. Install AppStudio to your Teams server from
  3. Extract the algobot-<version #>.zip file you downloaded from the portal, and locate the file.

    In this filename, the <version> value may change with each update.

  4. In Microsoft Teams, in the App Studio app, do the following:

    1. Click the Manifest Editor tab.
    2. Click Import an existing app, and select the file.
    3. Select the newly imported algobot app.
  5. Click Capabilities > Bots > Set up. On the New bot tab, do the following:

    1. In the Name field, enter .
    2. In the Scope area, select the Personal, Team, and Group Chat options.
    3. Click Create bot.

    A new bot ID value is displayed. Copy it and save it for later.

  6. In the App Passwords section on the Bots tab, click Generate New Password.

    Copy the generated password and save it for later.

    This password is used by Microsoft to cryptographically sign incoming messages, and by to authenticate the source of incoming messages.

  7. In the Messaging Endpoint section on the Bots tab, update the URL used to access via webhooks.

    For example, if you created a ngrok tunnel using ngrok .com, the Messaging Endpoint will be similar to the following:

  8. Click Finish > Test and Distribute, and then click Install.
  9. By default, is installed only for you. Enable the Add to a team option, and select your team to make available for everyone.

Continue on this page with Install [%=General.AlgoBot%] on the [%=General.ProductName-Short%] server.

Install AlgoBot on Skype for Business

supports both the online and on-premises versions of Skype for Business.

Skype online

Navigate to Welcome to AlgoBot Installation Skype For Business version, and follow the instructions.

After completing step 1, you will have a file named algobot-s4b-ucwa-credentials.json.

Save this file on the server, in the /home/afa/algobot/ directory before continuing.

Skype on-premises

Do the following:

  1. On your Skype for Business on-premises server, create a user for , with a username and password. An Admin user is required for this step.
  2. Disable external communication for the user, as will be available on Skype as all other users in the organizaiton.
  3. Log in to Skype for Business as .

Note the username and password for later use.

Once complete, continue with Install [%=General.AlgoBot%] on the [%=General.ProductName-Short%] server.

Install on the server

After installing on your chat platform, install on your server, and connect the two installations.

  1. Browse to the Portal and navigate to Downloads > Software > . Click .
  2. Use any standard SFTP tool to place the downloaded zip file on the Central Manager, in the /tmp directory.
  3. Log on to your Central Manager via SSH, as user root.
  4. To extract the installation files, run:

    unzip /tmp/algobot-<version #>.zip -d /home/afa

    where the <version> value differs with with each update.

    The following responses appear:

    Archive: /tmp/algobot-<version #>.zip creating: /home/afa/algobot/

    inflating: /home/afa/algobot/algobot-version.txt inflating: /home/afa/algobot/algobot

  5. Navigate into the directory, and start setting up by running:

    ./algobot <platform> --config

    where <platform> is one of the following, depending on your chat platform:

    • Slack: slack
    • Microsoft Teams: microsoft-teams
    • Skype for Business: s4b-online or s4b-onprem
  6. Follow the on-screen instructions and enter the details as needed.

    You saved some of these details when you performed the procedures above:

    • Install AlgoBot on Slack
    • Install AlgoBot on Microsoft Teams
    • Install AlgoBot on Skype for Business

    Some values have defaults already configured. To use the default value, press ENTER when relevant.

    Some steps will prompt you for optional configurations, as follows:

    HTTPS proxy settings

    The CLI will ask whether a proxy configuration is needed for your installation.

    The default value is no, or no proxy.

    To configure a proxy, enter yes instead, and then enter the proxy URL and port. The proxy URL must include the http:// or https:// prefix.

    The proxy will be used for both HTTPS and the HTTP proxy for to contact each of the chat platform's servers.

    Concurrent commands

    can handle simultaneous commands from multiple users.

    The default number of concurrent command is 7.

    To modify this number, enter a different number of concurrent commands to support. To modify this value later on, re-run the configuration as needed.

    Customize commands

    The CLI will prompt you to customize the set of commands exposed to end-users.

    Unless you have a specific need for your organization, we recommend entering no, and enabling to provide it's full set of features.

    To support multiple instances running a the same time, supporting multiple chat platforms or multiple teams, run using a separate configuration file. For more details, see Run multiple AlgoBot instances on a single machine.

    is now installed on your server and connected to your chat platform.

    server installation sample output

    The following is a sample CLI output for installing on the Central Manager and connecting to Slack:

    ######################## ALGOBOT BACKEND SETUP ######################## [PRESS ENTER WHEN READY]

    AlgoSec server IP []: AlgoSec user: admin

    AlgoSec password:

    BOT_TOKEN: xoxb-162846395123-veXbEQ1Xk1g



    Number of concurrent command handlers [7]:

    Would you like to configure custom proxy settings? [y/N]: y

    Proxy url:

    Proxy port: 8080

    Would you like to customize the commands AlgoBot will show to users? [y/N]: ######## Config creation finished ########

    Thanks! config file created at /home/afa/algobot/algobot-slack.conf

    You can re-configure any of the options above by running the AlgoBot again with '--config' option

    Please re-run the script to use the new config

  7. Start as a background process by running:

    ./algobot <platform>&

is up and running, and ready for chatting! For details, see Chat with [%=General.AlgoBot%].

Chat with

Chat with to run traffic simulations, submit change requests, analyze application impact, and more!

  • Enter @algobot help to view a full list of available commands and requests.
  • Send direct messages to from your chat platform. If there are more than the two of you in the chat, use the @algobot prefix so that knows you're talking to it.
  • Language support: If you’re typing in English, German, French, or Portuguese, AlgoBot will attempt to recognize the language and reply in kind. By default, AlgoBot replies in English.

  • Invite to any of your Slack channels. Once invited, listens to all commands you send to @algobot.

Make sure that you have run an analysis in before using . needs data to be able to help you!

For example:

maintenance and advanced configurations

The following sections describe how to maintain and troubleshoot your installation, as well as additional configurations.

  • Logs and configuration files
  • Upgrade [%=General.AlgoBot%]
  • Run multiple AlgoBot instances on a single machine

Logs and configuration files

log files are created under ~/algobot, usually defined as /home/afa/algobot.

A set of log and configuration files are saved for each chat platform, with the platform name, such as slack, as part of the filename.

Each set includes the following files:

algobot-<platform>.conf The configuration data generated as part of the installation and configuration process.

General logs, commands, and errors. If you need to contact support in reference to , support may request this file.

utilization-<platform>.log A synthesized, clear log of the commands used in for analytics purposes.


To update an existing installation, do the following:

  1. Replace the existing run file on the Central Manager with the new one provided by .
  2. Perform steps 1-3 in Install [%=General.AlgoBot%] on the [%=General.ProductName-Short%] server.

No additional configuration is required.

Run multiple AlgoBot instances on a single machine

To support multiple instances running a the same time, supporting multiple chat platforms or multiple teams, run using the following syntax:

./algobot --config-path /some/path.conf

where /some/path.conf is the path and filename of a separate configuration file. When run using this syntax, the CLI prompts you to create the defined configuration instead of the default.

For example:

algobot slack --config-path /path/to/config1 algobot slack --config-path /path/to/config2

Alternately, use the linux alias command to match each instance with a name and easy-to-run command.

For example:

alias algobot-team1=”~/algobot/algobot slack --config-path /path/to/config1” alias algobot-team2=”~/algobot/algobot slack --config-path /path/to/config2”

Then, run algobot-team1 to launch this instance.