Feishu Bot Integration
1. Overview
This article guides how to integrate Chat BI with Feishu bot for intelligent data querying.
2. Prerequisites
-
The customer has configured Feishu account integration in BI. For Feishu account integration solution, see: Feishu Complete Integration Solution.
-
The customer builds their own application and enables the bot capability of the application.
-
The current Feishu application has enabled the following permissions:
im:message:send_as_bot
: Send messages as the applicationim:message.group_at_msg:readonly
: Receive @bot message events in group chatsim:message.group_msg
(optional): Get all messages in groups (sensitive permission)im:message.p2p_msg:readonly
: Read private chat messages sent by users to the bot
3. Operation Steps
-
From the Feishu application management backend, obtain the application credential information.
NoteThe application used for Chat BI conversations and the Feishu application configured in the original BI backend can be different Feishu applications.
-
From the ChatBI knowledge management backend, obtain the topic ID information you want to configure.
-
Provide the above information to GuanYuan for Chat BI configuration item modification.
-
After the configuration item modification is completed, in the Feishu application management backend > Development Configuration > Events and Scheduling > Event Configuration, set "Subscription Method" to long connection and add "Receive Messages v2.0" event.
-
In the Feishu application management backend > Development Configuration > Events and Scheduling > Callback Configuration, set "Subscription Method" to long connection and add "Card Callback" interaction. After completion, you can perform Chat BI intelligent Q&A within the Feishu application.
-
After the above configuration is completed, when you initiate a question in the Feishu bot, the system will display the understanding of the question and query method and generate Feishu chart cards. If users don't like the default recommended visualization style, they can manually switch visualization styles.
4. Notes
Currently only supports environment-level configuration of 1 topic associated with 1 Feishu application.