# Feishu Card FAQs

This document provides solutions to potential issues you may encounter when building, sending, and updating cards.

## Building cards

### 1. Ordered and unordered lists in markdown syntax not working in cards?

Ordered and unordered lists in markdown syntax must be placed in the rich text component to be effective. Refer to the documentation:
- Using rich text in the building tool: [Rich text](https://open.feishu.cn/document/uAjLw4CM/ukzMukzMukzM/feishu-cards/feishu-card-cardkit/components/markdown)
- Building rich text with JSON code: [Rich text (Markdown)](https://open.feishu.cn/document/uAjLw4CM/ukzMukzMukzM/feishu-cards/card-json-v2-components/content-components/rich-text)

### 2. Do cards support HTML syntax?

Cards support some HTML syntax, but you need to use the new version of cards (JSON 2.0 structured cards). For details, refer to [Rich text component supporting HTML syntax and standard markdown syntax](https://open.feishu.cn/document/uAjLw4CM/ukzMukzMukzM/feishu-cards/card-json-v2-breaking-changes-release-notes#1ec43211).

### 3. Do cards support @mentioning individual members or everyone?

Yes. You can use the [Rich text](https://open.feishu.cn/document/uAjLw4CM/ukzMukzMukzM/feishu-cards/feishu-card-cardkit/components/markdown) component's @mention syntax. This syntax is only applicable when sending cards via Bots or API calls. It does not work when manually forwarding cards. Additionally, if you want to display usernames, avatars, or personal profiles in the card, you can use the [User](https://open.feishu.cn/document/uAjLw4CM/ukzMukzMukzM/feishu-cards/card-json-v2-components/content-components/user-profile) or [User list](https://open.feishu.cn/document/uAjLw4CM/ukzMukzMukzM/feishu-cards/card-json-v2-components/content-components/user-list) components. However, these components are for display only, and users will not receive mention notifications.

### 4. Some markdown syntax not working in cards?

Currently, the old version of cards (JSON 1.0) only supports a subset of markdown syntax. Refer to [Rich text (Markdown)](https://open.feishu.cn/document/uAjLw4CM/ukzMukzMukzM/feishu-cards/card-components/content-components/rich-text) component for supported syntax. To use more rich text syntax, refer to:
- Using rich text in the building tool: [Rich text](https://open.feishu.cn/document/uAjLw4CM/ukzMukzMukzM/feishu-cards/feishu-card-cardkit/components/markdown)
- Building rich text with JSON code: [Rich text (Markdown)](https://open.feishu.cn/document/uAjLw4CM/ukzMukzMukzM/feishu-cards/card-json-v2-components/content-components/rich-text)

### 5. Does the person selection component support selection within the entire enterprise?

No. The person selection component only supports automatically obtaining the members of the current group chat or the members passed in when building the card.

### 6. Can emojis be added to buttons in cards?

Yes. Emojis can be added to buttons by directly copying them. See [Emoji collection](https://www.feishu.cn/docx/doxcnG6utI72jB4eHJF1s5IgVJf).

### 7. Can links be added inside table components?

Yes. You need to set the column's data type (data_type) to lark_md or markdown, and then add link syntax. Refer to the documentation:
- Using tables in the building tool: [Table](https://open.feishu.cn/document/uAjLw4CM/ukzMukzMukzM/feishu-cards/feishu-card-cardkit/components/table)
- Building tables with JSON code: [Table](https://open.feishu.cn/document/uAjLw4CM/ukzMukzMukzM/feishu-cards/card-json-v2-components/content-components/table)

### 8. How to roll back the card template version in the card building tool?

Refer to [Preview and publish cards](https://open.feishu.cn/document/uAjLw4CM/ukzMukzMukzM/feishu-cards/feishu-card-cardkit/preview-and-publish-cards) under **Manage card versions**.

### 9. How to open card links within Feishu instead of through a browser?

Use [appLink](https://open.feishu.cn/document/uYjL24iN/ucjN1UjL3YTN14yN2UTN) to open links within Feishu. Other links will open externally. Example:
```
https://applink.feishu.cn/client/web_url/open?mode=sidebar-semi&max_width=800&reload=false&url=https%3A%2F%2Fopen.feishu.cn%2Fdocument%2FuAjLw4CM%2FuMzNwEjLzcDMx4yM3ATM%2Fdevelop-a-card-interactive-bot%2Fintroduction
```

### 10. How to delete a component in the building tool?

As shown in the image below, you can switch to the **Outline Tree** tab in the left navigation bar of the building tool, select the specified component in the card's outline tree, and delete it.

![20240703135447_rec_.gif](//sf3-cn.feishucdn.com/obj/open-platform-opendoc/2b5f547fbc721dc00a583bc26ca58210_8MwI2f9MRN.gif?height=786&lazyload=true&maxWidth=614&width=1914)

### 11. What are the restrictions on uploading images in Feishu cards?

Refer to the [Image](https://open.feishu.cn/document/uAjLw4CM/ukzMukzMukzM/feishu-cards/feishu-card-cardkit/components/image) component documentation for notes.

### 12. Can the value attribute be omitted in card interaction components like buttons?

Yes. In this case, when users click the interaction component, the callback will not return the corresponding field.

### 13. In the Feishu card building tool, what does the error "template variable can't be here" mean and how to solve it?

This error occurs because the corresponding variable does not support binding to the specified component. Refer to [Configure card variables](https://open.feishu.cn/document/uAjLw4CM/ukzMukzMukzM/feishu-cards/feishu-card-cardkit/configure-card-variables#1d19fbb3) to understand the variable types supported by different components.

### 14. Variables not working after migrating Feishu cards to the new building tool, how to solve it?

When importing the *.json file exported from the old tool to the new building tool, note the following:
- If there are variable placeholders in the old tool, ensure that you have declared the variables in the old tool. You need to create variables and add mock data in the old tool; otherwise, variables will not work in the new tool.
- If there are "loop object" variables in the old tool, ensure that you have filled in the sub-variable data in the mock data of the "loop object"; otherwise, columns bound with "loop object" will render abnormally in the new tool. The new tool will convert the "loop object" variable from the old tool to an "object array" variable and create corresponding sub-variables based on the key-value pairs declared in the mock data of the old tool.
### 15. How to pass the filled form items back to my server via callback after the user clicks a button?

The built-in "Submit" button in the [Form Container](https://open.feishu.cn/document/uAjLw4CM/ukzMukzMukzM/feishu-cards/feishu-card-cardkit/components/form) supports this functionality by default, and no additional implementation is required by developers. When the user clicks the submit button, the locally cached form content will be callbacked to the developer's server in one go, achieving the effect of submitting multiple form items at once.
### 16. How to insert a video in a card?

Feishu cards currently do not support directly embedding videos for playback. You can use **inserting a video link** or **image + link** to allow users to click the link or image and be redirected to the video link:

- **Inserting a video link**:  
Use the [Rich Text](https://open.feishu.cn/document/uAjLw4CM/ukzMukzMukzM/feishu-cards/feishu-card-cardkit/components/markdown) component to insert the video's link address in the card, enabling users to open the video in a browser or within Feishu after clicking the link.

- **Using image + link**:  
Use the [Image](https://open.feishu.cn/document/uAjLw4CM/ukzMukzMukzM/feishu-cards/feishu-card-cardkit/components/image) component to insert the video's cover image in the card, and set a redirect link for the image pointing to the video address.

### 17. How to delete a card in the card builder?

On the **My Cards** page of the card builder, click the more button of the target card and then delete the card. If the card cannot be deleted, it means the card has already been published. Published cards no longer support deletion.

### 18. Does Feishu card support cascading options/interaction between components (such as the linkage between provinces and cities)?

Currently, the interaction between components such as dropdown options is not supported. Interaction is only supported by binding a request callback event to a component and then updating the card through the callback. For details, refer to [Adding Custom Interactive Events](https://open.feishu.cn/document/uAjLw4CM/ukzMukzMukzM/feishu-cards/feishu-card-cardkit/add-interactive-events) and [Handling Card Callbacks](https://open.feishu.cn/document/uAjLw4CM/ukzMukzMukzM/feishu-cards/handle-card-callbacks).

**Note**: To achieve a cascading effect, do not place interactive components within a form container. Interactive components within a form container only support data submission through the form's button.

### 19. How to adjust the text size in the title component?

The text size of the title and subtitle in the title component cannot be adjusted.

### 20. After configuring multi-language for a card, how to view the effect in the Feishu client?

After setting up multi-language for a card, the card will automatically display content in the corresponding language based on the user's Feishu client language. Therefore, you need to switch the Feishu client language to view the effect in the corresponding language.
## Sending cards

### 1. How to send a card message to a group chat?

You can send a card to a group in the following two ways:
- Add a custom Bot to the group chat and use the custom Bot to send messages to the group via webhook. For details, refer to [Sending Feishu cards with custom Bot](https://open.feishu.cn/document/uAjLw4CM/ukzMukzMukzM/feishu-cards/quick-start/send-message-cards-with-custom-bot).
- Add the launched Bot app to the group chat, then call the [Send message](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/message/create) API, specify the message type as group chat and the group chat ID, and then send the card. For details, refer to [Sending cards](https://open.feishu.cn/document/uAjLw4CM/ukzMukzMukzM/feishu-cards/send-feishu-card).

### 2. What are the limitations for sending cards?

- The overall data of the card cannot exceed 30 KB.
- The nesting level between components in the card cannot exceed five layers.
- A single card can support up to five table components. If the card is configured with multiple languages, up to five table components are supported per language.

### 3. Can cards be sent to multiple people in bulk?

Yes. Refer to the API [Batch send messages](https://open.feishu.cn/document/ukTMukTMukTM/ucDO1EjL3gTNx4yN4UTM). However, you need to note:
- In the request parameters, `msg_type` should be `interactive`, and `content` should be changed to the `card:{}` structure.
- Cards sent in bulk do not support updates or callback interactions.

### 4. When sending a card, the link scheme is not in the whitelist?

Currently, illegal URLs are not supported, only http and https are supported.

### 5. Why does sending a card sometimes fail when the markdown text contains a plaintext link?

You can check if the link is in the form of `https://xxxx.xxxChinese text`. You need to add a space between the link and the Chinese text to avoid markdown judging the entire `https://xxxx.xxxChinese text` as an illegal link. If you need to use it this way, you can use the `<a>` tag.

### 6. Why does the link I send when sending a card report an error, but it can be opened when copied to a browser?

It may be due to the following reasons: Links in cards do not support special characters. It is recommended to escape the corresponding parameters. For example: `https://open.feishu.cn?time=31/12/2014`` 23:59:59`. This link is incorrect, you need to escape it as: `https://open.feishu.cn?time=31%2F12%2F2014%2023%3A59%3A59`.

### 7. Why does mentioning a specific person not work after manually forwarding the card?

Mentioning a specific person is applicable to scenarios where the message is sent to a specified user through the interface, and it is effective in this scenario. It is not effective in the scenario of manual forwarding.

### 8. When clicking "Send me a preview", why is the card received in the Feishu client inconsistent with the current card? Why do different users see different card contents?

This is because the current card is configured with multiple languages. When the display language of the Feishu client matches any language of the added card, the content of that language will be displayed.

![image.png](//sf3-cn.feishucdn.com/obj/open-platform-opendoc/aa4dccf755d33efb8426999d94b6a510_csfShZT109.png?height=492&lazyload=true&maxWidth=600&width=1239)

You can view, add, and delete cards corresponding to different languages in the multilingual settings.

![image.png](//sf3-cn.feishucdn.com/obj/open-platform-opendoc/ee5865d48f57bb311ade41935f83bec2_K9o6LnTYuc.png?height=526&lazyload=true&maxWidth=400&width=561)

### 9. Why does the `<xxx>` text not display in the markdown module when sending a card?

`<xxx>` hits the special characters used in markdown syntax, so it is not displayed. At this time, you can add `&zwj;` before the text, for example `<&zwj;aaa>` to handle it. Learn more, refer to the [Rich text (Markdown)](https://open.feishu.cn/document/uAjLw4CM/ukzMukzMukzM/feishu-cards/card-components/content-components/rich-text) section for escape characters.

![](//sf3-cn.feishucdn.com/obj/open-platform-opendoc/984ebbbe9c9740d1c9949850d3a6a634_c1tizs7J72.png?height=534&lazyload=true&maxWidth=600&width=918)

### 10. When sending a card, special symbols like &reg, &copy in the markdown module are specially processed. What should I do?

In the markdown module, some special characters such as &reg, &copy are treated as HTML characters and converted into special symbols like ®, ©. It is recommended not to use such characters in the markdown module, including within links. If the characters are outside the link, you can resolve this by adding `&zwj;`, for example: `&&zwj;reg`, `&&zwj;copy`.

### 11. After the Feishu card is upgraded, does the server SDK need to be upgraded for use?

No. The [Server SDK](https://open.feishu.cn/document/ukTMukTMukTM/uETO1YjLxkTN24SM5UjN) is compatible with both the new and old versions of cards.

### 12. How to modify the text in the Feishu client chat bar message preview?

You can customize the text in the Feishu client message preview by using the `config.summary` parameter in the card JSON code.

- An example of the card JSON code is shown below:

```json
  {
      "schema": "2.0",
      "config": {
          "update_multi": true,
          "summary": {  // Customize the card summary content here, which will be displayed in the message preview text
              "content": "West Lake, located at No. 1 Longjing Road, Xihu District, Hangzhou City, Zhejiang Province, is the central attraction of Xihu District in Hangzhou City, Zhejiang Province. It is situated in the western part of Hangzhou's urban area, with a catchment area of 21.22 square kilometers and a lake surface area of 6.38 square kilometers."
          },
          "style": {
              "text_size": {
                  "normal_v2": {
                      "default": "normal",
                      "pc": "normal",
                      "mobile": "heading"
                  }
              }
          }
      },
      "body": {
          "direction": "vertical",
          "padding": "12px 12px 12px 12px",
          "elements": [
              {
                  "tag": "markdown",
                  "content": "West Lake, located at No. 1 Longjing Road, Xihu District, Hangzhou City, Zhejiang Province, is in the western part of Hangzhou's urban area, with a catchment area of 21.22 square kilometers and a lake surface area of 6.38 square kilometers.",
                  "text_align": "left",
                  "text_size": "normal_v2",
                  "margin": "0px 0px 0px 0px"
              },
              {
                  "tag": "button",
                  "text": {
                      "tag": "plain_text",
                      "content": "🌞 More Attraction Information"
                  },
                  "type": "default",
                  "width": "default",
                  "size": "medium",
                  "behaviors": [
                      {
                          "type": "open_url",
                          "default_url": "https://baike.baidu.com/item/%E8%A5%BF%E6%B9%96/4668821",
                          "pc_url": "",
                          "ios_url": "",
                          "android_url": ""
                      }
                  ],
                  "margin": "0px 0px 0px 0px"
              }
          ]
      },
      "header": {
          "title": {
              "tag": "plain_text",
              "content": "Today's Travel Recommendation"
          },
          "subtitle": {
              "tag": "plain_text",
              "content": ""
          },
          "template": "blue",
          "padding": "12px 12px 12px 12px"
      }
  }
  ```

If the `summary` parameter is not set, the text in the client chat bar message preview will be displayed according to the following logic:

- **Card title content**: If the card includes a [title](https://open.feishu.cn/document/uAjLw4CM/ukzMukzMukzM/feishu-cards/card-json-v2-components/content-components/title) component, the message preview text defaults to the content of the card title:

- **Text component content**: If the card does not include a title component but starts with a plain text component or rich text component, the message preview text defaults to the actual text content:

- **Card message**: If the card neither includes a title component nor starts with a plain text component or rich text component, the message preview text defaults to **card message**:

## Updating cards

### 1. Can cards previewed and forwarded to chats using the card builder tool be updated?

Cards previewed and forwarded to chats using the card builder tool cannot be updated.

### 2. Can cards sent using the frontend interface [sendMessageCard](https://open.feishu.cn/document/uYjL24iN/uUjN5UjL1YTO14SN2kTN) be updated?

Yes, they can be updated. The person sending the card needs to generate a user_access_token within the corresponding app, and then call the [Update app-sent message card](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/message/patch) interface to modify it.

### 3. What is the timeout duration for card callbacks?

The timeout duration for card callbacks is **3 seconds**, and it cannot be customized. If the developer cannot return the callback content within 3 seconds, they can first return `{}`, and then use the token in the callback to [Delay update message card](https://open.feishu.cn/document/ukTMukTMukTM/uMDO1YjLzgTN24yM4UjN). For details, refer to the **Method 2: Delay update card** section in [Configuring card interactions](https://open.feishu.cn/document/uAjLw4CM/ukzMukzMukzM/feishu-cards/configuring-card-interactions).

### 4. Is it supported to set different callback addresses for different cards?

No, it is not supported.

### 5. Why does clicking the card interaction button result in an error on the client?

You can troubleshoot by following these steps:
1. If it only occurs on one device, check the network status of the device.
2. If it occurs on multiple devices, check:
    1. Whether the card request URL is configured and related callbacks are subscribed to. This needs to be configured in the Bot settings or interaction callbacks of the app. For details, refer to the [Callback documentation](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/event-subscription-guide/callback-subscription/callback-overview).
    2. Whether the corresponding backend service has received the interaction callback and returned an HTTP 200 status code within 3 seconds. For details, refer to [Configuring card interactions - Step 3: Receive and process callbacks on the local server](https://open.feishu.cn/document/uAjLw4CM/ukzMukzMukzM/feishu-cards/configuring-card-interactions#1b37805e).
    3. In the case of immediate updates using callback parameters, confirm whether the card message is correct.
    4. Whether the [Update app-sent message card](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/message/patch) interface is used to update non-shared cards.
    **Notice**：The card templates of the Feishu card builder tool are all shared cards by default, meaning the update_multi attribute is true and cannot be modified for now.

### 6. Why does the card not update successfully or revert immediately after a successful update when clicking the card?

Please troubleshoot by following these steps:
1. If using the interface to update the card, check whether the interface was called before responding to the callback request. Note that using the interface to update must be executed after responding to the callback request. Parallel execution or premature execution may result in update failure.  
2. Whether the [Update app-sent message card](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/message/patch) interface is used to update non-shared cards.    
    **Notice**：The card templates of the Feishu card builder tool are all shared cards by default, meaning the update_multi attribute is true and cannot be modified for now.    

### 7. Will card callbacks retry like event subscriptions?  

No, if the push fails, an error will be immediately displayed on the client.  

### 8. Why can’t the interface retrieve the content of temporary cards (i.e., cards visible only to specific people)?  

Cards visible only to specific people do not support retrieving their content via the interface.  

### 9. If a card is configured with a callback, how to distinguish whether the user clicked the card sent privately by the Bot or in a group?  

You can obtain the corresponding open_chat_id from the callback data, then use this field value to call the [Get group info](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/chat/get) interface. You can distinguish it from the returned `chat_mode` field.

![image.png](//sf3-cn.feishucdn.com/obj/open-platform-opendoc/f2bc6eb3d1c36b3654198a3dd4b6e414_NOchFwFZY1.png?height=213&lazyload=true&maxWidth=500&width=809)

### 10. How to distinguish which button’s click event is triggered in the card callback? If there are multiple buttons, how to distinguish and handle subsequent callbacks?  

You can set key-value pairs for the buttons. After publishing, when a user clicks a button on the card, the configured key-value pairs will be sent back to the configured callback service address, allowing the business side to distinguish. For details, refer to [Configuring card interactions](https://open.feishu.cn/document/uAjLw4CM/ukzMukzMukzM/feishu-cards/configuring-card-interactions).

![image.png](//sf3-cn.feishucdn.com/obj/open-platform-opendoc/d5a97870715bffb709651c861f98db57_u4jlztZDIQ.png?height=714&lazyload=true&maxWidth=500&width=1177)

### 11. Can the card callback determine whether the user completed the interaction on a mobile device or a PC?

Currently, it is not supported to determine the type of client from which the user triggered the callback.

### 12. How to set the button in the card to be clickable only once? How to disable the button after the user clicks it?

You need to prepare two cards: Card A with the button in a clickable state and Card B with the button in a disabled state.

Implementation approach:
1. Send Card A through the application.
2. The user clicks the button on Card A, successfully triggering the card callback.
3. Refer to [Handling Card Callbacks](https://open.feishu.cn/document/uAjLw4CM/ukzMukzMukzM/feishu-cards/handle-card-callbacks) and choose:

- **Method 1: Update the card immediately within 3 seconds**: Pass the data of Card B into the response callback structure to update the card.
   - **Method 2: Delay the card update within 30 minutes**: First respond with an empty structure, then call [Delay Updating the Message Card](https://open.feishu.cn/document/ukTMukTMukTM/uMDO1YjLzgTN24yM4UjN) and pass Card B within 30 minutes to update the card.

### 13. How to obtain the user information of the button clicker?

The [Card Interaction Callback](https://open.feishu.cn/document/uAjLw4CM/ukzMukzMukzM/feishu-cards/card-callback-communication) includes the information of the callback triggerer by default:

```json
{
  "operator": { // Information of the callback triggerer
    "tenant_key": "2df73991750*****", // Tenant key of the callback triggerer, i.e., the unique identifier of the tenant
    "user_id": "867*****", // User ID of the callback triggerer. This parameter is returned when the application has the "Get User User ID" permission enabled
    "open_id": "ou_3c14f3a59eaf2825dbe25359f15*****", // Open ID of the callback triggerer
    "union_id": "on_cad4860e7af114fb4ff6c5d496d*****" // Union ID of the callback triggerer
  }
}
```

Based on the above information, you can call [Get Single User Information](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/user/get) to obtain details such as the user's name.

### 14. Can the request data of the card callback be viewed in the Developer console?

No. Once the card callback is successfully triggered, the interaction data between the user and the card is directly sent to the callback address configured by the developer. Information such as LogId cannot be queried.

## Other questions

### 1. How to track the read count and click count of sent cards?

Feishu cards currently do not support directly tracking the read count or click count of cards.

For card read count, you can refer to message-related APIs and implement this scenario on your own:

- The [Message Read](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/message/events/message_read) event is triggered when a user reads a private chat message. You can use this event to track the read count of cards sent to individuals.

- The [Query Message Read Information](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/message/read_users) API allows you to query the information of users who have read a message. You can use this API to track the read count of cards sent to group chats.

For card click count, you can configure interactive components and add your own tracking logic when [Handling Card Callbacks](https://open.feishu.cn/document/uAjLw4CM/ukzMukzMukzM/feishu-cards/handle-card-callbacks).