Configuration¶
The module has no settings page. Configuration happens in two places: the permission, and the field widget action on each form display.
Permission¶
Use FlowDrop field widget actions (use flowdrop field widget actions)
controls who sees the action button and who can run it. Users without it do
not get the button, and a request that reaches the AJAX callback anyway gets
an error message instead of a workflow run.
Each click runs the workflow once per requested suggestion. If the workflow calls an AI provider, each run spends credits, so grant the permission to the roles that need it.
The workflow list in the action settings only shows workflows the site
builder has view access to.
Add an action to a field¶
- Create the workflow first. See Building a workflow.
- Go to Structure > Content types > [type] > Manage form display (or the form display of any other fieldable entity).
- Open the widget settings (gear icon) of the field that should receive the suggestion.
- In Field Widget Actions, add one of:
- FlowDrop Workflow for text fields.
- FlowDrop Entity Reference Workflow for entity reference fields.
- Fill in the settings below, then save the widget settings and the form display.
The widget must be one of the widgets listed on Text fields or Entity reference fields; other widgets do not offer these actions.
Settings from Field Widget Actions¶
These come from the base module and apply to every action:
| Setting | What it does |
|---|---|
| Enabled | Turns the action on for this widget. |
| Button label | Text on the button, for example "Suggest summary". |
| Automatic, Multiple, result message | Behavior provided by Field Widget Actions. See its documentation. |
FlowDrop Workflow settings¶
| Setting | Default | What it does |
|---|---|---|
| FlowDrop Workflow | none (required) | The workflow to run. |
| Output Key | processed_content |
The key in a node's output that holds the suggestion. The default matches the Field Suggestion Output node. |
| Number of Suggestions | 1 | 1 to 3. Each suggestion is a separate workflow run, so response time grows with this number. |
| Include Metadata | on | Stored with the action configuration. |
FlowDrop Entity Reference Workflow settings¶
All of the settings above, plus:
| Setting | Default | What it does |
|---|---|---|
| Value Mode | Replace | Replace shows only the new suggestions. Append merges them with the terms already in the field and drops duplicates by ID. |
| Target Vocabulary | empty | A vocabulary machine name stored with the action, for example tags. Leave empty for any. |