box_docgen_create_single_file_from_user_input_tool
Generate a single document from a Doc Gen template using user input, saving it to a specified folder in PDF or DOCX format. Ideal for automating custom document creation.
Instructions
Create a single document from a Doc Gen template using user input.
Args: client (BoxClient): Authenticated Box client. docgen_template_id (str): ID of the Doc Gen template. destination_folder_id (str): ID of the folder to save the generated document. user_input (dict[str, Any]): User input data for document generation. example: example: { "user_input": { "order": { "id": "12305", "date": "18-08-2023", "products": [ { "id": 1, "name": "A4 Papers", "type": "non-fragile", "quantity": 100, "price": 29, "amount": 2900 }, ] } } } generated_file_name (Optional[str]): Name for the generated document file. output_type (str): Output file type (only, "pdf" or "docx").
Returns: dict[str, Any]: Information about the created batch job.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
destination_folder_id | Yes | ||
docgen_template_id | Yes | ||
generated_file_name | No | ||
output_type | No | ||
user_input | Yes |