Skip to content

[Feature Request] Add AI Assistant message type support #11

Description

@hu-qi

Feature Request: AI Assistant Integration

Background

With the rise of AI assistants (Clawdbot, ChatGPT, etc.), more developers are integrating AI into GitHub workflows for automated code review, documentation generation, and error analysis. The current feishu-action supports basic message types but lacks specialized support for AI assistant message formats.

Problem

When AI assistants generate complex reports, code suggestions, or task summaries:

  1. Code blocks cannot be highlighted
  2. Structured data (JSON, tables) display poorly
  3. Multi-step task progress is unclear
  4. Complex AI-generated formats are not well presented

Proposed Solution

Add a new ai_assistant message type optimized for AI assistant messages.

Example usage:

- name: AI Assistant Message
  uses: Open-Source-Bazaar/feishu-action@v1
  with:
    url: ${{ secrets.FEISHU_BOT_WEBHOOK_URL }}
    msg_type: ai_assistant
    content: |
      title: "Code Review Report"
      assistant: "Clawdbot"
      status: "completed"
      sections:
        - type: "summary"
          text: "Reviewed 5 files, found 3 suggestions"
        - type: "code"
          language: "typescript"
          code: "const result = calculate();"
        - type: "metrics"
          items:
            - "Code quality: 85/100"
            - "Potential bugs: 2"

Key Features

  1. Code highlighting - Automatic language detection
  2. Structured data - Support for tables, cards, metrics
  3. Task status tracking - Show AI task progress
  4. Interactive elements - Buttons for quick actions
  5. AI identity - Display assistant name and avatar

Use Cases

  1. AI code review in CI/CD
  2. Automated documentation notifications
  3. AI test reports
  4. Smart error analysis
  5. AI task status updates

Value Proposition

  1. Better developer experience - Clearer AI messages
  2. Enhanced workflow automation - Better AI integration
  3. Project differentiation - First feishu action with AI support
  4. Growing demand - As AI assistants become more common

Technical Implementation

  • Extend based on Feishu card message format
  • Support Markdown and code blocks
  • Compatible with existing architecture
  • Provide TypeScript type definitions

Labels: enhancement, feature-request, ai-integration
Priority: High
Estimated effort: Medium (2-3 weeks)
Related issues: #8, #9, #10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions