Skip to main content

Install the plugin

1

Install the plugin

In Feishu, open the Plugin Marketplace, search for 文档智能解析(转 markdown), and install it.
2

Get an API key

In your Bitable workflow action, you need to fill in API Key. Prepare your SoMark API key in advance.
No API key yet? Go to the SoMark API workbench to get your API key. Free quota does not need to be claimed and is automatically credited to your account (500 pages/day, 2000 pages/month).

Use the plugin in a Bitable workflow

1

Prepare fields in your Bitable

In your target Bitable, prepare an Attachment field to upload/store files. If you want to save the parsed result back into Bitable, add a Text field (optional).
2

Create a workflow

Open your Bitable and go to Workflow to create a new workflow.
3

Configure a trigger

Choose a trigger (for example Record created/updated or Manual trigger) and make sure the trigger provides the record variables that include your attachment field.
4

Add the plugin action

In workflow actions, find and add 文档智能解析(转 markdown).
5

Configure input variables

Configure the following fields in the action panel:
  • Select document: Bind it to the attachment field from your trigger (or a file output from a previous step).
  • API Key: Paste your SoMark API key, or click the + button on the right to insert a workflow variable/secret (recommended).
  • (Optional) Configure other parameters such as Output Formats, Image Format, Formula Format, and Table Format as needed. If left empty, defaults apply. If you don’t select Output Formats, the action returns both Markdown and JSON by default. See Input parameters below for details. dify-配置输入变量
6

Use outputs in downstream actions

Reference output variables in subsequent actions, for example writing markdown to a Bitable text field or sending it to a chat.

Parameters and outputs

Input parameters

ParameterTypeDescription
Select document (选择文档)Attachment fieldThe document to parse
API KeyTextYour SoMark API key. Prefer injecting it via a workflow variable mapping instead of hardcoding it
Output Formats (输出格式)Multi-selectMarkdown or JSON. Default: Markdown,JSON
Image Format (图片返回格式)Single-selectURL, Base64, none. Default: URL
Formula Format (公式返回格式)Single-selectLaTeX, MathML, ASCII. Default: LaTeX
Table Format (表格返回格式)Single-selectHTML, Markdown, Image. Default: HTML
Chemical Structure Format (化学结构式返回格式)Single-selectCurrently supports Image only. Default: Image
Enable Text Cross Page (文字跨页拼接)Single-selectDefault: Off
Enable Table Cross Page (表格跨页拼接)Single-selectDefault: Off
Enable Title Level Recognition (标题层级识别)Single-selectDefault: Off
Enable Inline Image (保留文中图)Single-selectDefault: On
Enable table Image (保留表中图)Single-selectDefault: On
Enable Image Understanding (图片理解)Single-selectDefault: On
Keep Header Footer (保留页眉页脚)Single-selectDefault: Off

Results

FieldTypeDescription
Task ID (task_id)stringTask ID
Status (status)stringTask status
Markdown result (markdown)stringMarkdown result
JSON result (json)stringJSON result