#30139·zulip

Auto populate bot avatar for webhook integrations bot

Author: PieterCKCreated May 20, 2024Updated Sep 30, 2026
Labelsarea: integrations (bots)new featurearea: integrations (incoming webhooks)priority: lowcore team candidate

:spiral_notepad: Overview

This proposal aims to enhance the bot avatar feature by automatically assigning a bot avatar to incoming webhook bots based on the integration app they are associated with. This feature was originally discussed in: Issue #692 PR #12474

CZO discussion: here

Save the integration field to BotConfigData.

  • To start, add another "Select an integration" dropdown field to the bot creation modal (add_new_bot_form.hbs).
  • Save the selected integration from the bot creation modal using BotConfigData probably in the same manner as how Embedded bots save their service_name.

Make integration field update-able in Backend.

  • Pre-populated the original "Select an integration" field in the generate URL integration modal (generate_integration_url_modal.hbs) with the selected option during bot creation.
  • Every time "Select an integration" field change, make calls to the backend to change the value in BotConfigData. A good reference mightbe over at Settings where we save on field change instead of clicking a "save" button somewhere.

Auto Assign Bot Avatar

  • Auto-assign bot avatar to incoming webhook bots with the selected integration. This could be done in endpoints such as add_bot_backend() to auto-assign the bot avatar when the bot is created. There may be better ways this could be achieved

mock-up of the new bot creation modal:

Before After
image Screenshot from 2024-05-06 14-00-15
image pre-populated when opened image

Follow up

  • The second "Select an integration" dropdown field in the generate URL integration modal could be removed. This step will need to be confirmed again once the proposed changes have been implemented. CZO discussion