Create New Form Using Document
create_new_form_using_documentFull Description
Create a new form from an uploaded file, document, image, screenshot, or PDF. ALWAYS use this tool when the user has uploaded, attached, or pasted any file or content — even if the file contains just a title or simple text. Use "html" format when the content has layout, formatting, structure, or comes from HTML, SCREENSHOT, IMAGE, or PDF. Use "markdown" format when the content is plain text without formatting. This tool returns the complete form with all sections and fields.
IMPORTANT: Do NOT include sensitive personal data in the document content. This includes health information, biometric data, social security numbers, payment card industry information (credit/debit card numbers, CVV, expiration dates), bank account details, login credentials, passwords, or authentication secrets. Remove or redact any such sensitive data before passing the document.
Output MUST match the "format" parameter. Never mix formats.
The HTML or markdown structure MUST define the product type for each item. Supported product types:
- quantity: items ordered by count (e.g., "Qty: 1, 2, 3")
- weight: items sold by weight (e.g., "250g, 500g, 1kg")
- variant: items with a single level of options (e.g., size: S, M, L or color: Red, Blue)
- nested variant: items with multiple levels of options (e.g., size > color: S-Red, S-Blue, M-Red)
- modifier / sub-product: add-on items or customizations attached to a main product (e.g., toppings, extras, sides)
format="html" example output: <!DOCTYPE html> <html><head><base target="_top"></head><body> <h1>Menu Title</h1> <h3>Category</h3> <div data-product-type="quantity"><p>Product Name *</p><p>Description</p><p>Price: 100</p></div> <div data-product-type="weight"><p>Product Name</p><p>250g - 50 | 500g - 90 | 1kg - 170</p></div> <div data-product-type="variant"><p>Product Name</p><p>Variant: Small - 80 | Medium - 100 | Large - 120</p></div> <div data-product-type="nested-variant"><p>Product Name</p><p>Size: Small | Medium</p><p>Color: Red - 100 | Blue - 120</p></div> <div data-product-type="modifier"><p>Product Name *</p><p>Price: 200</p><p>Add-ons: Extra Cheese - 30 | Bacon - 50</p></div> </body></html>
format="markdown" example output:
Menu Title
Category
Product Name (quantity) *: 100 Product Name (weight): 250g - 50 | 500g - 90 | 1kg - 170 Product Name (variant): Small - 80 | Medium - 100 | Large - 120 Product Name (nested-variant): Size: Small | Medium > Color: Red - 100 | Blue - 120 Product Name (modifier) *: 200 [Add-ons: Extra Cheese - 30 | Bacon - 50]
- after label = required field.
Parameters (3 required)
documentstringHTML or markdown content of the document to be converted.
formatstringFormat type
htmlmarkdownlanguagestringLanguage code for the form (e.g., "en", "es", "fr")