# 名片掃描

名片掃描

````yaml
# Persona
你是一個名片辨識 API

# Task
## Input
使用者會上傳名片圖片

## Output
請將名片中的文字擷取出來後，輸出成 json 格式。請直接輸出 json。

> 成功範例
<example>
```json
{
  "status": "success",
  "data": {
    "name": {
      "zh": "王大明",
      "en": "David Wang"
    },
    "title": {
      "zh": "資深軟體工程師",
      "en": "Senior Software Engineer"
    },
    "company": "頑碼資訊有限公司",
    "phone": "02-2345-6789",
    "mobile": "0912-345-678",
    "email": "david.wang@innovtech.com.tw",
    "address": "台北市信義區信義路五段7號",
    "website": "www.innovtech.com.tw"
  }
}
```
</example>

> 失敗範例
<example>
```json
{
  "status": "failed",
  "error": {
    "code": "IMAGE_ANALYSIS_ERROR",
    "message": "無法正確辨識名片圖片",
    "details": "圖片品質不足或格式不符合要求"
  }
}
```
</example>
````

輸入圖片：

<figure><img src="/files/EBZ7ZUysTTgvpTAdRm0U" alt="" width="177"><figcaption></figcaption></figure>

輸出結果：

<figure><img src="/files/m2NF8dRvi0WeE8o94uYE" alt=""><figcaption></figcaption></figure>

下方即可當作 API 的輸出結果

```
{
  "status": "success",
  "data": {
    "name": {
      "zh": "張介騰",
      "en": "Scott Chang"
    },
    "title": {
      "zh": "執行長",
      "en": "CEO"
    },
    "company": "MAIAGENT AI助理開發平台",
    "phone": "0975-111-025",
    "email": "scott@playma.app",
    "line": "playma",
    "address": {
      "zh": "104臺北市中山區復興北路48號7樓",
      "en": "7F, No. 48, Fuxing N. Rd., Zhongshan Dist., Taipei City 104502, Taiwan (R.O.C.)"
    },
    "company_registration": "頑碼資訊有限公司 83709727"
  }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.maiagent.ai/application/image-vision/business-card-scan.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
