Actions31
문서 → Create
AI-generatedSummary
Create a new HWPX document file with specified initial content and save it to a binary property in the workflow item.
Inputs
- fileName (required) — The filename for the new HWPX document, e.g., 'document.hwpx'.
- initialText — The initial content of the document's body. Interpreted according to the selected input format as plain text, Markdown, or structured JSON.
- binaryPropertyName — The name of the binary property where the generated HWPX file is stored. Defaults to 'data'.
- options.inputFormat — The format used to interpret the initialText content: plainText (default), markdown, or structuredJson for detailed formatting control.
Output shape
a single workflow item with a binary property containing the newly created HWPX file.
The output contains the generated HWPX document stored in the specified binary property. The initialText input can be empty to create an empty document. The returned binary data can be saved or used downstream in the workflow.
Examples
Example 1: Create a blank HWPX document named 'report.hwpx' with empty content and store it in the binary property 'data'.
Set 'fileName' to 'report.hwpx', leave 'initialText' blank, optionally confirm 'binaryPropertyName' is 'data', and set 'options.inputFormat' to 'plainText'.
Example 2: Create an HWPX document with Markdown content initializing the body to a formatted text.
Set 'fileName' to desired filename, provide Markdown text in 'initialText', and set 'options.inputFormat' to 'markdown'. Output will contain the HWPX file reflecting the Markdown formatting.