Frontend text generation lets a visitor create text before submitting the form. It requires Premium or Agency.
Complete-Result Button #
- Set the feed Trigger Mode to Frontend button — show result when complete.
- Choose who may use the button.
- Add
[goaif_button feed_id="123" label="Generate draft"]inside the form. - Replace
123with the feed ID. - Preview the form, enter the fields referenced by the prompt, and select the button.
The button waits for the full response and then fills the target field.
Streamed-Result Button #
- Set Trigger Mode to Frontend button — show result while generated.
- Add
[goaif_stream_button feed_id="123" label="Generate draft"]. - Test through the same CDN, caching, and hosting stack used by the live page.
The status text updates while data arrives and the final result fills the target field.
Allow Either Button #
Choose Either frontend button when the same feed may be used with either shortcode in different layouts. This permits both actions; it does not create two generations from one click.
Design The Form #
Place the button after every prompt input the visitor should complete and before the target field when that makes the workflow easier to understand. Give the destination a clear label such as “Generated draft,” let the visitor edit it if appropriate, and explain that selecting the button uses their current form values and provider API usage.
Frontend-only feeds do not run again automatically on submission. The value already placed in the field is saved as part of the entry.