Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Integration of Robot, Message Card and Feishu Card Capabilities / 集成钉钉和飞书的机器人、消息卡片、飞书卡片的能力 #1692

Open
2 tasks done
Poyhub opened this issue Mar 3, 2025 · 2 comments
Labels
call for contribution New Feature P1 Task with middle level priority

Comments

@Poyhub
Copy link

Poyhub commented Mar 3, 2025

Required prerequisites

Motivation

1. 动机

在希望Camel多智能体框架中引入人类介入机制时,集成飞书的机器人、消息卡片和飞书卡片能力具有重要意义。

  • 高效通知:智能体在业务流程中遇到复杂情况触发人类介入时,需要及时、准确地将任务信息传达给相关人员。飞书机器人可以实现实时消息推送,消息卡片和飞书卡片则能够以丰富、直观的形式展示任务详情,包括任务描述、相关数据、处理要求等,大大提高信息传达的效率和准确性。
  • 增强交互性:通过飞书卡片,用户可以直接在消息中进行操作,如查看任务详情、处理任务、反馈结果等。这种交互方式避免了用户在多个系统之间切换,提高了处理任务的便捷性和效率,促进了人机协作的无缝衔接。
  • 提升协作体验:在团队协作场景中,消息卡片和飞书卡片可以方便地共享任务信息,团队成员可以在飞书群中快速交流和协作。同时,飞书机器人可以根据预设规则自动分配任务、提醒处理进度,提升整个团队的协作效率和决策质量。

1. Motivation

When introducing the human intervention mechanism in the Hope Camel multi - agent framework, integrating the capabilities of Feishu's robots, message cards, and Feishu cards is of great significance.

  • Efficient notification: When an agent encounters a complex situation in the business process and triggers human intervention, it is necessary to convey task information to relevant personnel in a timely and accurate manner. Feishu robots can achieve real - time message push, and message cards and Feishu cards can display task details in a rich and intuitive form, including task descriptions, relevant data, processing requirements, etc., greatly improving the efficiency and accuracy of information transmission.
  • Enhanced interactivity: Through Feishu cards, users can directly operate in the message, such as viewing task details, processing tasks, and providing feedback. This interactive method avoids users switching between multiple systems, improves the convenience and efficiency of task processing, and promotes seamless human - machine collaboration.
  • Improved collaboration experience: In the team collaboration scenario, message cards and Feishu cards can conveniently share task information, and team members can quickly communicate and collaborate in the Feishu group. At the same time, Feishu robots can automatically assign tasks and remind of processing progress according to preset rules, improving the overall team's collaboration efficiency and decision - making quality.

Solution

机器人集成
  • 开发飞书机器人:基于飞书开放平台的 API,开发自定义的飞书机器人。机器人作为系统与飞书用户之间的桥梁,负责接收系统触发的人类介入任务,并将任务信息以合适的形式推送给相关人员。
  • 消息推送逻辑:在智能体检测到需要人类介入的情况时,系统调用飞书机器人的消息发送接口,将任务信息封装成消息发送到指定的人员或群组。可以根据不同的任务类型和接收对象,设置不同的消息发送规则,确保消息能够准确送达。
Robot integration
  • Develop Feishu robots: Based on the APIs of the Feishu Open Platform, develop custom Feishu robots. As a bridge between the system and Feishu users, the robot is responsible for receiving human - intervention tasks triggered by the system and pushing task information to relevant personnel in an appropriate form.
  • Message push logic: When the agent detects a situation that requires human intervention, the system calls the message - sending interface of the Feishu robot to encapsulate the task information into a message and send it to the specified personnel or group. Different message - sending rules can be set according to different task types and recipients to ensure that the message can be accurately delivered.
消息卡片和飞书卡片集成
  • 卡片模板设计:根据不同的业务场景和任务类型,设计多种消息卡片和飞书卡片模板。模板中包含任务的关键信息,如标题、描述、操作按钮等,以提高信息的可读性和交互性。
  • 动态数据填充:在发送消息时,将具体的任务数据动态填充到卡片模板中,确保卡片内容准确反映当前任务的情况。同时,支持在卡片中添加图片、链接等富媒体元素,进一步丰富信息展示。
  • 交互功能实现:为飞书卡片添加交互功能,如点击按钮触发任务处理、提交反馈等。通过调用飞书开放平台的相关 API,实现卡片与系统的双向交互,确保用户操作能够及时反馈到系统中。
Integration of message cards and Feishu cards
  • Card template design: Design multiple message card and Feishu card templates according to different business scenarios and task types. The templates contain key information of the task, such as title, description, operation buttons, etc., to improve the readability and interactivity of the information.
  • Dynamic data filling: When sending a message, dynamically fill the specific task data into the card template to ensure that the card content accurately reflects the current task situation. At the same time, support adding rich media elements such as pictures and links to the card to further enrich the information display.
  • Implementation of interactive functions: Add interactive functions to Feishu cards, such as clicking a button to trigger task processing and submitting feedback. By calling the relevant APIs of the Feishu Open Platform, achieve two - way interaction between the card and the system to ensure that user operations can be timely fed back to the system.

Alternatives

No response

Additional context

飞书、钉钉目前是中国大陆地区使用范围最广的企业软件

Image
类似这种能力集成作为人类干预智能体的入口

  • 飞书开放平台:集成飞书的机器人、消息卡片和飞书卡片能力需要依赖飞书开放平台提供的 API。开发人员需要熟悉飞书开放平台的文档和开发规范,确保系统能够正确调用相关接口。
@Poyhub Poyhub added the enhancement New feature or request label Mar 3, 2025
@Poyhub
Copy link
Author

Poyhub commented Mar 3, 2025

Image

具体参考:https://open.feishu.cn/?lang=zh-CN

@Wendong-Fan Wendong-Fan added New Feature call for contribution P1 Task with middle level priority and removed enhancement New feature or request labels Mar 4, 2025
@Wendong-Fan Wendong-Fan modified the milestone: Sprint 24 Mar 4, 2025
@2456868764
Copy link

I am willing to try it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
call for contribution New Feature P1 Task with middle level priority
Projects
Status: No status
Development

No branches or pull requests

3 participants