> ## Documentation Index
> Fetch the complete documentation index at: https://docs.somark.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Using SoMark in Coze

> Add SoMark document parsing to your Coze agents and workflows via the plugin marketplace

## About Coze

Coze (扣子) is a no-code AI application development platform by ByteDance. It lets anyone — regardless of coding experience — rapidly build chatbots, AI agents, and plugins, then deploy them across social and messaging platforms.

The SoMark plugin is available in the Coze plugin store and brings powerful document parsing capabilities to your agents and workflows.

## Adding SoMark to an Agent

**1. Create an agent**

Go to your workspace, click **Project Development** → **+ Project** (top right) → **Create Agent**. ![Create agent in Coze](https://mintcdn.com/soulcode-9c5983db/pPYAhay76UZd1ySN/images/coze-%E5%88%9B%E5%BB%BA%E6%99%BA%E8%83%BD%E4%BD%93.webp?fit=max\&auto=format\&n=pPYAhay76UZd1ySN\&q=85\&s=0fa17af7f57379d62e233c9e866e75a5)

**2. Add the SoMark plugin**

In the agent editor, locate the **Skills** section and click to add a plugin. ![Add plugin in Coze - step 1](https://mintcdn.com/soulcode-9c5983db/pPYAhay76UZd1ySN/images/coze-%E6%B7%BB%E5%8A%A0%E6%8F%92%E4%BB%B6-1.webp?fit=max\&auto=format\&n=pPYAhay76UZd1ySN\&q=85\&s=3f2a4e0daf932dae92146e091a29962b) Search for **somark**, then find
and add the **somark\_doc\_parse** plugin. ![Add plugin in Coze - step 2](https://mintcdn.com/soulcode-9c5983db/pPYAhay76UZd1ySN/images/coze-%E6%B7%BB%E5%8A%A0%E6%8F%92%E4%BB%B6-2.webp?fit=max\&auto=format\&n=pPYAhay76UZd1ySN\&q=85\&s=f09bdb17612a69bc17251640b5fd6363)

**3. Configure the API key**

In the plugin parameter editor, enter your SoMark API key.

> [!NOTE]
>
> No API key yet? [Go to the SoMark API Studio to get your API key](https://somark.ai/Studio/apikey).

![Configure API key in Coze](https://mintcdn.com/soulcode-9c5983db/pPYAhay76UZd1ySN/images/coze-%E9%85%8D%E7%BD%AEapikey-1.webp?fit=max\&auto=format\&n=pPYAhay76UZd1ySN\&q=85\&s=6bff37c2598b86c9ce0bf14e93f137cc) After entering the API key, toggle the switch on the right to **enable it by default**. This ensures every
request automatically uses the configured API key without requiring users to enter it manually.

**4. Configure other parameters**

In addition to the API key, you can configure other optional parameters based on your needs, such as **Output formats**, **Image format**, **Formula format**, **Element
structure format**, and **Table format**. You can also use `feature_config` to control options such as **enable\_text\_cross\_page**, **enable\_table\_cross\_page**, **enable\_
title\_level\_recognition**, **enable\_inline\_image**, **enable\_table\_image**, **enable\_image\_understanding**, and **keep\_header\_footer**. If you are unsure how to configure
these options, start with the defaults and tune them one by one based on your workflow results. See **Plugin Parameters** below for detailed configuration descriptions.

![Configure plugin parameters in Coze](https://mintcdn.com/soulcode-9c5983db/pPYAhay76UZd1ySN/images/coze-%E5%8F%82%E6%95%B0.webp?fit=max\&auto=format\&n=pPYAhay76UZd1ySN\&q=85\&s=917d49ab953e697e9ec158cbdd8a5d3a)

**5. Save and test**

Click **Save**. Your agent can now use SoMark document parsing. Upload a file in the chat to see the "Calling somark" indicator. The parsed result will be returned once
processing is complete. ![Test SoMark in Coze](https://mintcdn.com/soulcode-9c5983db/pPYAhay76UZd1ySN/images/coze-%E6%B5%8B%E8%AF%95%E8%B0%83%E7%94%A8.webp?fit=max\&auto=format\&n=pPYAhay76UZd1ySN\&q=85\&s=fd8e9542e81da0cd3188e59bffc3e97f)

## Plugin Parameters

| Parameter | Type | Required | Description |
| - | - | - | - |
| `file` | file | ✅ | File to parse. Supports PDF, images, Word, PPT, and Excel formats |
| `api_key` | string | ✅ | API key in the format `sk-***` |
| `output_formats` | array | ❌ | Output formats. You can pass multiple values. If omitted, the default is `["markdown", "json"]`. Supported values: `json`, `markdown` |
| `element_formats` | object | ❌ | Element format settings that control the return format for images, formulas, tables, and chemical structures |
| `feature_config` | object | ❌ | Feature settings. This parameter was renamed from `extract_config` to `feature_config` |

> [accordion] element\_formats
>
> | Field | Type | Description |
> | - | - | - |
> | `image` | string | Image return format. Supported values: `url`, `base64`, `file`, `none` |
> | `formula` | string | Formula return format. Supported values: `latex`, `mathml`, `ascii` |
> | `table` | string | Table return format. Supported values: `markdown`, `html`, `image` |
> | `cs` | string | Chemical structure return format. Currently supports `image` |

> [accordion] feature\_config
>
> | Field | Type | Description |
> | - | - | - |
> | `enable_text_cross_page` | boolean | Whether to enable cross-page text stitching. Supported values: `true` / `false` |
> | `enable_table_cross_page` | boolean | Whether to enable cross-page table stitching. Supported values: `true` / `false` |
> | `enable_title_level_recognition` | boolean | Whether to enable heading level recognition. Supported values: `true` / `false` |
> | `enable_inline_image` | boolean | Whether to return inline images. Supported values: `true` / `false` |
> | `enable_table_image` | boolean | Whether to return images inside tables. Supported values: `true` / `false` |
> | `enable_image_understanding` | boolean | Whether to enable image understanding. Supported values: `true` / `false` |
> | `keep_header_footer` | boolean | Whether to keep headers and footers. Supported values: `true` / `false` |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.