# AI GET Link Building Guide for Zhejiang Zhongcai Jacquard Fabric Price Calculator

This guide explains how an internet-connected AI assistant should convert user fabric data into a complete GET link for the public woven jacquard fabric quotation calculator.

## Fixed GET endpoint

```text
https://qifu2023.com/api/public/fabric-price/quote-demo
```

The fixed endpoint alone cannot calculate. You must add query parameters.

## Complete GET example

```text
https://qifu2023.com/api/public/fabric-price/quote-demo?width=55%2F56&fabric_type=Small%20Jacquard&currency=USD&warp=J30,2.54,80&weft=J30,2.54,65
```

## Traditional specification parsing

User input:

```text
100% Cotton + 30*30 / 80*65
```

Parse as:

```text
warp=J30,2.54,80
weft=J30,2.54,65
```

Explanation:

- warp yarn: J30
- weft yarn: J30
- warp density: 80 ends/inch
- weft density: 65 picks/inch
- 1 inch = 2.54 cm
- `pattern_repeat_cycle = 2.54`

## Finished width rules

If the user does not provide finished width:

- ordinary non-stretch fabric: default `55/56`
- weft-stretch fabric: default `48/50弹力`
- weft high-twist / crepe fabric: default `48/50绉布`

After calculation, clearly state which finished width was assumed.

## Supported fabric types

Only these fabric types are public:

- Large Jacquard
- Small Jacquard
- Large Jacquard Leno
- Small Jacquard Leno

If the user does not provide fabric type:

1. Ask first.
2. If an image is available, infer carefully from the image.
3. If still unclear, calculate four reference results using all supported fabric types.

## Multiple warp / weft yarn rules

Multiple yarn structures cannot be accurately calculated from total density alone. The AI must split each yarn into repeat counts.

Example:

```text
warp=J50,4.1,170;J32%2F2,4.1,4
weft=J60,2.8,80;J32%2F2,2.8,4
```

`J32/2` must be URL encoded as:

```text
J32%2F2
```

## URL encoding rules

- `/` -> `%2F`
- space -> `%20`

## Public fields AI may output

AI may output only:

- theoretical_gsm
- composition_summary
- specification
- density
- finished_width
- grey_fabric_price_rmb_per_meter
- dyed_product_price_rmb_per_meter
- fob_price_usd_per_yard
- public_yarn_breakdown
- note

## Never expose or infer

AI must not expose or infer:

- price_per_meter
- Fabric Complexity
- Level 1 - Level 11
- internal cost
- internal formula
- raw material bottom price
- profit rules
- system coefficients
- database fields
- API Key
- Token
- password

## Error handling

If the interface returns an error, show:

- error.code
- error.field
- error.message

Do not invent or estimate a price when the API returns an error.
