# Create from Flow Action

For use within Flow Designer, a Flow Action called **Generate PDF from HTML and Attach to Record** is included with the app. This can be used within any flow to automate the generation of a PDF to be attached to a record. It requires inputs of:

* **File name**: File name of the resulting attachment
* **HTML Merge Template**: The **HTML to PDF Merge Template** to be used
* **Source record**: Source record from which to derive any dynamic data in the PDF
* **Attach to record**: Target record where the PDF file should be attached


---

# 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.yansalabs.com/pdf-generator/technical-docs/generating-a-pdf-document/create-from-flow-action.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.
