Single Target Field #
The full text response is placed in the selected Target Field. Choose this for summaries, drafts, notes, classifications, or any task that produces one value.
The destination selector shows fields from the current form. A Paragraph field is usually best for multi-line text; a Text or Hidden field is useful for short values. The plugin sanitizes the generated value before writing it, but the destination field’s own behavior still matters.
JSON Multi-Field Mapping #
Use a mapping when one request should populate several form fields. Each row has:
- Response name: a name you choose for one value the AI must return.
- Destination field: the existing Gravity Forms field that receives that value.
Example mapping:
| Response name | Destination field |
|---|---|
summary |
AI Summary |
headline |
Suggested Headline |
priority |
Suggested Priority |
The response names are not Gravity Forms labels or field IDs. They are exact JSON property names included in the structure requested from Anthropic. Choose short, descriptive names such as summary, firstName, or internal_notes. Explain their desired content in the User Prompt.
Names are case-sensitive and punctuation-sensitive: firstName and firstname are different. They must be non-empty, unique, no more than 128 bytes, and contain no control characters.
What The Provider Is Asked To Return #
For a model with native structured-output support, the plugin supplies a schema requiring every configured response name as a string and rejects additional properties. For another compatible model, the plugin adds an instruction to return only a JSON object matching the mapping.
Generation fails unless the response is a valid object containing every required response name. The plugin then sanitizes and verifies every field write. This all-or-error behavior prevents a partly written structured result from looking complete.
Prompt Example #
System Prompt:
Extract only facts explicitly present in the submission. Keep the summary under 80 words.
User Prompt:
From the request below, return:
- summary: a plain-language summary
- headline: a five-to-eight-word title
- priority: one of low, normal, or urgent
Request: {Request:5}
The mapping, not the bullet punctuation, determines which properties are required. The prompt explains what each property should contain.