2017-01-25 00:37:21 +01:00
|
|
|
# Add a bot or integration
|
2017-01-02 21:48:08 +01:00
|
|
|
|
2017-01-13 19:00:30 +01:00
|
|
|
Bots and integrations are features that are accessible to all members of an organization.
|
2017-01-02 21:48:08 +01:00
|
|
|
|
2017-02-04 03:47:27 +01:00
|
|
|
## Add a bot
|
2017-01-02 21:48:08 +01:00
|
|
|
|
2018-04-24 19:44:36 +02:00
|
|
|
{settings_tab|your-bots}
|
2017-01-02 21:48:08 +01:00
|
|
|
|
2017-07-07 20:50:27 +02:00
|
|
|
2. On this page, under the **Add a new bot** view, enter the bot type,
|
|
|
|
a name, an email, and optionally an avatar for your bot.
|
|
|
|
Then click the **Create bot** button to create your bot.
|
2017-01-02 21:48:08 +01:00
|
|
|
|
|
|
|
![Bots page](/static/images/help/add_a_new_bot.png)
|
|
|
|
|
2017-01-17 02:42:23 +01:00
|
|
|
3. An entry such as the following should appear above the **Add a new bot** view, confirming
|
2017-01-02 21:48:08 +01:00
|
|
|
the creation of your bot.
|
|
|
|
|
|
|
|
![Example bot](/static/images/help/bot_example.png)
|
|
|
|
|
|
|
|
4. You now have access to your bot's API key and API
|
|
|
|
configuration file (`.zuliprc`) which you will need for integrations that you would like
|
2017-05-11 23:30:34 +02:00
|
|
|
to use with this bot. You can click on the download
|
|
|
|
(<i class="icon-vector-download-alt"></i>) icon to download your `.zuliprc` file.
|
2017-01-02 21:48:08 +01:00
|
|
|
|
2017-07-07 20:50:27 +02:00
|
|
|
### Bot types
|
|
|
|
|
|
|
|
You can create three types of bots:
|
|
|
|
|
|
|
|
![Bot types](/static/images/help/bot_types.png)
|
|
|
|
|
|
|
|
* **Generic bot:** A generic bot can send *and* receive messages.
|
2017-08-22 14:47:18 +02:00
|
|
|
Choose this type if you want to:
|
|
|
|
* *test* and deploy a simple Python bot using the [Zulip bots](
|
|
|
|
https://github.com/zulip/python-zulip-api/tree/master/zulip_bots) framework.
|
|
|
|
* interact with Zulip using the [Zulip Python API](
|
|
|
|
https://github.com/zulip/python-zulip-api/tree/master/zulip).
|
2017-07-07 20:50:27 +02:00
|
|
|
|
|
|
|
* **Incoming webhook:** The API keys for such bots are limited to
|
|
|
|
only sending messages and can't receive messages. Thus, this bot
|
|
|
|
type lessens the security risks associated with exposing such API
|
2017-08-22 14:47:18 +02:00
|
|
|
keys to third-party services.
|
|
|
|
Choose this type if you want to:
|
|
|
|
* deploy one of our [integrations](/integrations).
|
|
|
|
* develop your own integration that posts to Zulip. Note that
|
|
|
|
`Incoming Webhook` integrations can only be developed in the [Zulip repository](
|
|
|
|
https://github.com/zulip/zulip/tree/master/zerver/webhooks).
|
|
|
|
|
|
|
|
* **Outgoing webhook:** Bots of this type are the same as a **Generic bot**,
|
2017-12-30 16:32:36 +01:00
|
|
|
except **Outgoing webhooks** bots have an extra field for the Endpoint URL of the
|
2017-08-22 14:47:18 +02:00
|
|
|
third-party service being requested. **Outgoing webhook** bots send POST requests
|
2017-12-30 16:32:36 +01:00
|
|
|
to this Endpoint URL.
|
2017-08-22 14:47:18 +02:00
|
|
|
Choose this type if you want to:
|
|
|
|
* make Zulip post messages to a URL.
|
2018-05-29 10:53:45 +02:00
|
|
|
* deploy Zulip's [Botserver](/api/deploying-bots).
|
2017-08-22 14:47:18 +02:00
|
|
|
*This is the default way of deploying bots used in production.*
|
2017-07-07 20:50:27 +02:00
|
|
|
|
2017-02-04 03:47:27 +01:00
|
|
|
## Add an integration
|
2017-01-02 21:48:08 +01:00
|
|
|
|
2017-05-11 23:30:34 +02:00
|
|
|
The [Integrations page](/integrations) offers a complete list of all the
|
|
|
|
integrations currently supported by Zulip. To add an integration to your
|
|
|
|
organization, select the integration that you would like to use from the list
|
|
|
|
and follow the installation instructions accordingly.
|