PdfFormTask
Automated PDF form population with intelligent field extraction from context and template-based generation.
Category: File
Side-Effect: Safe (New File)
Model: GPT-4 Preferred
⚙️ PdfFormExecutionConfig.json
{
"output_file": "contracts/signed_nda.pdf",
"fields": {
"EffectiveDate": "2023-10-27",
"Company": "Acme Corp"
},
"flatten": true
}
→
👁️ SessionTask UI
Status
Extraction
Result
✔ Successfully created signed_nda.pdf
2 fields filled from manual config and 4 fields extracted from context.
Test Workspace Browser
Explore generated PDF artifacts and templates within the PdfFormTask workspace.
Type Configuration (Static)
| Field | Type | Description |
|---|---|---|
template_file* |
String | Path to the PDF template file used for all executions of this task type. |
resultTemplate |
String | Template for the success message. Supports {output_file} and {count}. |
Execution Configuration (Runtime)
| Field | Type | Description |
|---|---|---|
output_file |
String | The destination path for the filled PDF. Defaults to filled_form.pdf. |
fields |
Map<String, String> | Manual overrides for field names to values. |
flatten |
Boolean | If true, flattens the form fields to make them read-only. Default: true. |