Duaer

Knowledge base

Connect Feishu to the Duaer knowledge base

Index Feishu wiki spaces, Docs, Base and drive files, and optionally group chats and Minutes, with Feishu’s own sharing; employees can also ask Duaer in Feishu.

What Duaer reads in Feishu

Duaer reads the wiki spaces and drive folders the Feishu app can open. Under Choose what to index you can keep only some of them.

  • Docs: the full text.
  • Base: the records of each table, up to 2,000 per table.
  • Files in wiki and drive: TXT, Markdown, CSV, TSV, JSON, PDF, Word (.docx), Excel (.xlsx) and PowerPoint (.pptx) up to 20 MB. Sheets, slides, mind notes, older Docs, other formats and larger files are indexed by title only; the source card counts them by reason.
  • Group chats, once turned on: the last 30 days of messages in the groups the bot is in, text from people only, without files or images. Only members of a group find them. The app needs im:message.group_msg and im:chat:readonly.
  • Minutes, once turned on: the minutes members own or took part in over the last 90 days, with their summary, to-dos, chapters and transcript. Only the owner and participants find a minute. Duaer searches for each member it has matched to a Feishu account, once an hour. The app needs minutes:minutes.search:read, minutes:minutes.basic:read and minutes:minutes.artifacts:read; a missing one is listed on the source with a link to grant it.

One indexing pass reads up to 5,000 items.

Connect Feishu

  1. In the Feishu Open Platform, create a custom app for your company. Give it read access to wiki, Docs, drive, Base and contacts, and add it to the wiki spaces and folders you want indexed.
  2. In Duaer, create a Feishu Tenant Token API credential with the app’s App ID and App Secret. Keep it in a team project, so other admins can maintain it.
  3. As an owner or admin, open Data sources in the sidebar, select Add source and choose Feishu, choose Knowledge source under Add as, then choose the credential and click Connect. Indexing starts right away.
  4. Optional: click Choose what to index and tick the wiki spaces and drive folders to keep.
  5. Copy the Redirect URL for member sign-in from the source and add it under Security settings › Redirect URLs in the Feishu app. Without it, members get error 20029 when they link their account.
  6. Ask a question whose answer is in a Feishu document, and check that the citation opens it.

Who finds which document

Duaer keeps Feishu’s sharing. A document is found only by the people, departments (with their sub-departments) and groups it is shared with in Feishu. Shared by link with the organization, it is found by every member known in Feishu; shared by link with anyone on the internet, it is still open only within the organization in Duaer. User groups in a permission cannot be expanded and open nothing.

Members are matched to Feishu by email. The source card shows how many members are known in Feishu, and Show members lists who is not. A member can link their own account with Link Feishu account under Knowledge base on the Duaer employee portal, or an admin clicks Map and enters their Feishu email or mobile number. A member who is not known finds nothing from Feishu.

How soon changes show

  • Edited documents are read again every 10 minutes.
  • Who may open each document is read again every hour, so a removed share stops working within the hour.
  • With Live updates on, a file is indexed again as soon as it changes. Also subscribe to the events the source lists under Events and callbacks in the Feishu app.
  • Index now starts a pass at once; Disconnect removes all Feishu content from the knowledge base.

Ask Duaer in Feishu

  1. On the Feishu source, turn on Ask Duaer in Feishu and enter the app’s Verification Token and Encrypt Key.
  2. In the Feishu app, under Events and callbacks, put the request URL shown on the source for both events and callbacks, subscribe to the receive message event, add the card action callback, and turn on the bot.
  3. Employees message the bot directly, or mention it in a group.

Answers cite their sources and use only what the person asking may open. The bot also answers about their own cards, cases and followed metrics; when they ask it to do something, it sends a card with Run and Cancel. With Send cards to their owners on, cards that workflows create reach their owners in Feishu, and they decide with one click.

Proactive answers in groups

  1. With Ask Duaer in Feishu on, the Feishu source shows Proactive answers. Tick the groups to answer in, and give a group words if it should only answer messages with them. Only the organization’s owners and admins can set this.
  2. In the Feishu app, add the permission im:message.group_msg (read all messages in groups).
  3. When someone posts what looks like a question in such a group (without mentioning the bot), Duaer replies to that message, for everyone in the group.

Answers use only what everyone in the group may read, and cite their sources. Duaer stays quiet when someone in the group is not a member of the organization or is not known, or when no sourced answer is found. At most 20 answers per group an hour. Duaer keeps only which message in which group it answered, never the message; the source shows how many it answered in the last 7 days. Credits are charged to the person who asked.

With this permission the bot receives every message in its groups, but only a message that mentions it is a question to it, answered privately; the others are only looked at for proactive answers in chosen groups and are otherwise dropped.

Requests often arrive from another app (an approval or form bot, for example). Under a chosen group, select Choose from apps that posted here lately and tick the apps to answer (Feishu gives no app name, so the list shows the app ID and the start of its latest message): their messages need not read as questions, and Duaer replies by the same rules. This needs the permission im:message.group_msg.include_bot:read as well. Credits for these answers are charged to the owner or admin who last saved the setting; once that person is no longer an owner or admin, these messages are not answered.

Summarize a thread

  1. In a thread in a group, mention Duaer and ask only for a summary ("summarize this thread", "recap").
  2. Duaer replies in the thread, for everyone in the group: key points, decisions, open questions, and action items (who does what, and when).

The summary uses only the messages people wrote in that thread (not apps), and nothing else from the knowledge base; for a long thread, the most recent part. Sensitive details are masked by the organization’s AI safety rules before the model reads them, and nothing is kept. Credits are charged to the person who asked.

Asking Duaer anything else is still answered privately as a question. Outside a thread, Duaer tells you privately to ask in one. It needs the permission to read all messages in groups (im:message.group_msg), as proactive answers do.

Open Duaer from the workbench

  1. In the Feishu app, add the Web app capability.
  2. Set the Web app home page address shown on the Feishu source as both the desktop and the mobile home page, then publish a version of the app.

People open Duaer from the Feishu workbench and reach the Duaer employee portal, where they sign in as usual (a password or the single sign-on your company set up). Duaer does not offer signing in with a Feishu account.

Limits

  • Up to 5,000 items per pass, 2,000 records per Base table, and files up to 20 MB.
  • Up to 200 group chats, the last 30 days only.
  • Duaer never changes content in Feishu. Save to Feishu Docs on the employee portal only creates a new document that the employee owns; see the Duaer employee portal.
  • Feishu approvals and Base can also be process sources; see Add a process source.

Questions

Why is a Feishu file found only by its title?

It is of a kind whose text Duaer does not read (such as a sheet or slides), larger than 20 MB, or could not be read. The source card counts them by reason.

Members get error 20029 when they link Feishu. What is wrong?

The Feishu app lacks the redirect URL for member sign-in. Add the URL shown on the source under Security settings › Redirect URLs.

The source says the Feishu app lacks a permission.

Click Open the app’s permissions, grant any one of the permissions named, then click Index now.

In this section