Настройка сообщений о повышении уровня доверия для новых пользователей

:bookmark: Это руководство объясняет, как настроить персонализированные сообщения о повышении уровня доверия для новых пользователей, заменив стандартный процесс приветствия от бота Narrative в Discourse.>

:person_raising_hand: Требуемый уровень доступа: Администратор

Краткое содержание

В этом руководстве мы покажем, как настроить процесс адаптации новых пользователей, заменив стандартное приветствие от бота Narrative в Discourse на персонализированные сообщения о повышении уровня доверия. Вы узнаете, как:

  1. Настроить пользователя, отвечающего за контакты сайта
  2. Изменить настройки бота Discobot по умолчанию
  3. Настроить системные сообщения для разных уровней доверия
  4. Отрегулировать тайминг процесса адаптации

Настройка пользователя, отвечающего за контакты сайта

  1. Перейдите в настройки вашего сайта
  2. Найдите параметр “site contact username” (имя пользователя контакта сайта)
  3. Установите его на предпочитаемое имя пользователя (по умолчанию оно пустое)

Например:

Screenshot showing site contact username setting

После установки имени пользователя настройте профиль пользователя:

  • Подходящий аватар
  • Полное имя
  • Членство в группах и значки (flairs)
  • Опции связи

Вот пример настроенного пользователя, отвечающего за контакты сайта:

Изменение настроек бота Discobot по умолчанию

  1. В настройках вашего сайта найдите “narrative bot” (бот Narrative)
  2. Убедитесь, что приветственный пост отключен (это настройка по умолчанию)
  3. Рассмотрите возможность отключения публичных ответов

Вот рекомендуемые настройки:

Настройка системных сообщений

Discourse отправляет системные сообщения о повышении до уровня доверия 1 и уровня доверия 2. Чтобы настроить их:

  1. Перейдите в admin/customize/site_texts
  2. Найдите и измените следующие переменные:
  • Сообщение для уровня доверия 1:
    • system_messages.welcome_tl1_user.text_body_template
    • system_messages.welcome_tl1_user.subject_template
  • Сообщение для уровня доверия 2:
    • system_messages.tl2_promotion_message.text_body_template
    • system_messages.tl2_promotion_message.subject_template

:information_source: Примечание: Встроенного системного сообщения для повышения до уровня доверия 3 нет. Если вы хотите уведомлять пользователей о достижении уровня TL3, вы можете использовать плагин Automation для отправки сообщения, срабатывающего при присвоении значка Regular или при добавлении пользователя в группу trust_level_3.

Настройка обучающего пособия от бота Discobot (опционально)

Если вы хотите, чтобы пользователи могли получить доступ к обучающему пособию от бота Discobot:

  1. Упомяните в сообщении для уровня TL1, что пользователи могут запустить обучение, ответив @discobot start tutorial
  2. Отредактируйте начальное сообщение бота, изменив:
    • discourse_narrative_bot.new_user_narrative.hello.message
    • discourse_narrative_bot.new_user_narrative.hello.title

Тайминг процесса адаптации

Чтобы контролировать, когда новые пользователи получат первое сообщение:

  1. В настройках вашего сайта найдите параметр “tl1 requires”
  2. Отрегулируйте настройки на удобное для вас время

Например:

Результат

После внедрения этих изменений:

  1. Новые пользователи не будут получать немедленное уведомление после регистрации
  2. Первое сообщение, которое они получат, будет приветственным сообщением TL1 от пользователя, отвечающего за контакты вашего сайта
  3. Сообщение будет содержать ваш персонализированный контент и приходить от настроенного пользователя, отвечающего за контакты сайта

Вот пример того, как это может выглядеть:

Screenshot of a custom welcome message notification

15 лайков

Why do we need to disable the welcome bot? Just so that users will not receive a message from discobot or is it really required in order for the custom contact to work?

1 лайк

You don’t disable the narrative bot with that specific setting. You disable the welcome post being sent by the bot. And yes, that’s sort of necessary if you don’t want to send out welcoming messages twice.

Disabling other bot features is not. If you want the bot to spell out what else it can do, you can always type @discobot display help in a message or post.

1 лайк

Hmm, do you mean the other welcoming message is the one for TL1? But usually users start from TL0, so they will not receive this message immediately.

2 лайка

Yes, that’s actually one of the two motivations for this set-up:

  • not having a bot welcoming new users
  • not sending out an immediate message that directs users away from your main forum content on signup

I should probably state that in the first post… @team, could this be a wiki post?

I think ideally these considerations wouldn’t be bundled and you could just pick a user that sends all welcoming/onboarding messages (tl0, tl1, tl2).

Another more ideal solution to welcome tl0 - but not direct them away from the main content - could actually be a “tl0 welcoming banner”. That’s a bit fiddly to setup as such… but could be a good use case for a simple component :bulb:

3 лайка

Got it - makes sense now :slight_smile:

3 лайка

How? By setting discourse narrative bot welcome post delay to 0?

2 лайка

When you filter settings for narrative bot then there’s a dedicated setting: disable discourse narrative bot welcome post.

3 лайка

Can we preview the message? Or we can only see it by creating a test user and granting the user trust level to see the customized message?

3 лайка

Yes, at least I’m also only aware of doing it that way. You can preview email templates, but there seems to be no backend option to preview system messages.

3 лайка

Hi @manuel , what happens if I disable the lounge? That category isn’t available for members in my community, so these 2 texts don’t seem to be available for customizing. Does that mean that in my case when a member achieves TL3 he won’t get a welcome message?

1 лайк

Do these actually exist? I am unable to find them

4 лайка

I’m not sure they do. :baymax_no:


I think they were likely removed along with pre-seeding the Lounge category a while back. I think they were the content of the Lounge category’s ‘About’ topic.

4 лайка

What is the difference between titles vs subject_templates? I am leaving them as default for now but am curious when they would be used or seen.

1 лайк

Hi there,

I am unable to find the level 2 or level 3 messaging in the site text. Does this still exist?

I am quite sure the trust level 3 message and the texts related to it do not exist. I wasn’t able to find them in 2024 and they have not been added since then.

system_messages.tl2_promotion_message.text_body_template and system_messages.tl2_promotion_message.subject_template still exist

Ok thank you, I will do the level 1 messaging now.

The Lounge, and those lounge_welcome messages for TL3, no longer exist. The OP should probably be edited.

What you can modify for TL3, if you need to, are the Site Texts displayed to describe the badge:

badges.regular.description :

badges.regular.long_description :

You can also send a message with the automation plugin that is triggered by the regular badge being granted, or the user being added to the TL3 group, but this is unrelated to customizing the existing promotion messages.

1 лайк

Thanks @Moin

All very helpful! I added automations plugin yesterday, so can use that as a work around. We have custom badges so I can try and use one of them for a similar message to trust level 2 and 3!