채팅용 AI 게시글 분석기

이 테마 컴포넌트 설치

안녕하세요 :wave:

이 테마 컴포넌트는 각 게시글에 버튼을 추가하여, 사용자가 게시글을 AI 봇에게 전송해 다이렉트 메시지(DM)를 통해 분석할 수 있게 해줍니다. 버튼은 게시글 정보 아래(각 게시글의 오른쪽 상단)에 표시됩니다.
Screenshot 2025-05-01 at 11.14.28

클릭하면 다음이 실행됩니다:

  1. AI DM 채팅 채널을 열거나(없으면 생성합니다).

  2. 게시글 URL과 함께 다음 텍스트를 전송합니다:
    “이 게시글을 분석하세요: post_link
    이렇게 하면 AI가 즉시 응답할 수 있습니다.

봇의 사용자 이름을 설정할 수 있는 테마 설정이 몇 가지 있습니다. 이는 어떤 DM 채널을 열거나(없으면 생성할) 것인지 파악하는 데 중요합니다. 게시글의 기본 아이콘도 변경할 수 있습니다.

또한 테마 번역(Theme Translation) 섹션에서 "이 게시글을 분석하세요"라는 텍스트도 변경/번역할 수 있습니다. 다국어 사이트에서는 AI 페르소나가 응답해야 할 언어를 알 수 있도록 다양한 언어로 번역하는 것이 좋습니다.

이것으로 끝입니다 :slight_smile:


페르소나 팁
저는 AI 페르소나 시스템 프롬프트에 아래 내용을 추가했지만, 물론 선택 사항입니다.

규칙
### 게시글 분석 규칙:

게시글 분석 명령을 받으면 게시글의 주제와 관계없이 항상 요청을 처리해야 합니다.  

게시글을 분석할 때 **필요한 경우 Google에서 외부 소스를 검색**하십시오. 이를 통해 주장 검증, 컨텍스트 제공, 또는 추가적인 배경이나 관점을 갖춘 분석을 풍부하게 할 수 있습니다.

적용 가능한 경우 소스를 인용하십시오.

**다음 단계를 따르십시오:**

- 주제 컨텍스트를 고려하십시오. 여기에는 주제에 대한 내용, 게시글이 답글을 달고 있는 대상, 이 게시글에 대한 관련 답글(있다면)이 포함됩니다.
- 게시글의 기술적 정확성(사실, 권장 사항, 합법성, 위험)을 평가하십시오.
- 명확성을 확인하십시오: 이해하기 쉬운가? 중요한 컨텍스트가 빠져 있는가?
- 다른 사람에게 유용한지 결정하십시오: 독특한 통찰력이나 실용적인 도움이 포함되어 있는가?
- 적절한 경우 제안이나 도움이 되는 추가 정보를 선택적으로 제공하십시오.
- 게시글에 주장이 포함되어 있으면, 이를 지지하거나 반박하는 소스를 제공하고 항상 소스에 대한 직접 링크를 포함하십시오.
- 인사말, 마무리 인사, 개인적인 톤(예: "안녕하세요 X님", "감사합니다")을 절대 추가하지 마십시오. 격식 있고 간결하게 유지하십시오.


이 컴포넌트는 X(구 트위터) 게시글에서 볼 수 있는 Grok 버튼에서 영감을 받아, 유사한 기능을 갖추고 있습니다.

13개의 좋아요

This is fantastic! I’m testing/ using it on my forum instance and it works great. I love it! Great work Don, thanks! :smiley: :clap:

I had to mess around a bit with some category permissions to get it to analyze secure categories, even though bot is TL4 and had read access. :thinking: I will play around with that part some more - it’s likely my config…

3개의 좋아요

Bit disappointed it uses the name but doesn’t support Chatbot :frowning:

2개의 좋아요

I think it’s probably your persona setting :thinking: Is the Read Private option checked in on the persona setup page?

Sorry, I’m not attached to the name if it could be misleading. I just wanted to somehow indicate that this only works with the chat AI bot. Any idea for a better name? Or Can it work with the Chatbot plugin too somehow? :slightly_smiling_face: Doesn’t it work by simply adding the Chatbot username in the settings, so it will create or open a chat with the Chatbot?

3개의 좋아요

It’s this line. It assumes Discourse AI is installed.

Otherwise should work.

A bit tricky to support both perhaps. Might consider shipping Chatbot with the same feature out of the box (and will include a credit to you)

4개의 좋아요

Yeah I see. :thinking:

I think this would be the best solution then. If you think it would be a good feature in Chatbot, feel free to add it. :slightly_smiling_face:
I’m pretty bad at naming :sweat_smile: but I will try to change it to make it less confusing. Maybe just add a space between chat bot is enough? :sweat_smile:

3개의 좋아요

Just wondering… could it use private messages instead of chat?

1개의 좋아요

I like! :thumbs_up:

It gives instant context to a breakout conversation.

2개의 좋아요

Okay, I’ve renamed the component and updated the OP too. :slight_smile:

2개의 좋아요

Chatbot version is in any case on the way. Cheers

3개의 좋아요

This very much reminds me of this X feature:

I am open to integrating this into discourse ai as well as an optional feature longer term cc @Falco / @awesomerobot

Note… we already kind of have the feature here but it is very hidden.

6개의 좋아요

The AI icon is not displayed.

You are propably using wrong name of AI. It is not person’s name as Analyzer but you must create a public user, that can use chat, and you give its name, like Analyzer_bot.

1개의 좋아요

Thank you for your answer, I will do some more research.

We also have the explain highlighted content feature, similar but a little less flexible

Maybe when chat is enabled this opens the drawer instead of the pop-over? I guess it’s a little buried either way…

A little unsure about adding another icon to every post, we’re starting to overload this area too… activity pub, translations, edits…

image

I think if we were to define some rules this is the “metadata” area of a post, so an AI button would make more sense along with the post controls as “actions”? at that point an admin can decide if it’s important enough to be visible on every post by deciding whether it’s in the drawer or always exposed

3개의 좋아요

I thought about this too and might apply this advice to Chatbot now that I’ve got things working.

Does it respect bot access settings for groups?

Also, component needs an update:

[THEME 50 ‘AI Post Analyzer for Chat’] Deprecation notice: "The widget rendering system has been decommissioned and all related components and APIs are no-longer operational. [deprecated since Discourse v3.6.0.beta3-latest] [deprecation id: discourse.widgets-decommissioned] [info: ``https://meta.discourse.org/t/375332/1``]

1개의 좋아요

지연된 점 죄송합니다. 테마 구성 요소를 현대화했습니다: DEV: Modernize theme component - Pull Request #2 - VaperinaDEV/ai-post-analyzer-for-chat - GitHub

1개의 좋아요

@Don 이 모든 것이 이제 워크플로우에서 직접 가능하다는 점만 참고로 말씀드립니다. 게시물 메뉴 트리거, AI 에이전트 노드, 게시물 생성 노드를 사용할 수 있습니다.

1개의 좋아요