> For the complete documentation index, see [llms.txt](https://docs.ebbot.ai/ebbot-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ebbot.ai/ebbot-docs/integrations/automations-integrations/integration-setup-guides/hubspot-integration-in-automations/actions/generate-resolution-buttons.md).

# Generate Resolution Buttons

Generates an HTML snippet containing interactive buttons ("Yes, close my ticket" and "No, I still need help") that can be embedded into an email sent to the user. This works together with the "Incoming Button Click" trigger to capture user feedback.

**Action identifier:** `generate_resolution_buttons`. **Reference checked:** 29 September 2026.

## Inputs

| Field             | Type    | Required/default | Meaning                                                                   |
| ----------------- | ------- | ---------------- | ------------------------------------------------------------------------- |
| `ticket_id`       | string  | Required         | The ID of the ticket.                                                     |
| `subscription_id` | string  | Required         | The ID of the trigger waiting for the button click.                       |
| `valid_for`       | integer | `24`             | How long the resolution links should remain valid. Default is 24 hours.   |
| `html_template`   | string  | `""`             | Custom HTML template. Must include {yes\_url} and {no\_url} placeholders. |

## Output shape

Paths are relative to this action's output. Select them from the builder's variable picker; do not add a `ticket` wrapper to actions that return top-level fields. Nullable property fields and empty defaults are not proof that a value was retrieved.

| Path   | Type   | Meaning                                                                                                      |
| ------ | ------ | ------------------------------------------------------------------------------------------------------------ |
| `html` | string | HTML containing the response buttons, ready to include in an outgoing message. This action does not send it. |

## Setup and use

Use the same configured HubSpot connection for this action and the receiving Incoming Button Click trigger. Set a positive validity period in hours; the default is 24 hours. A custom HTML template must contain both `{yes_url}` and `{no_url}`.

The action returns HTML for your outgoing message. Your workflow is responsible for sending the message and handling the response. Check that the generated links use the correct environment before sending.

Share links only with the intended recipient and keep them out of shared documentation, prompts and logs. A link does not verify the recipient's identity. Follow the [safe-use guidance for Incoming Button Click](/ebbot-docs/integrations/automations-integrations/integration-setup-guides/hubspot-integration-in-automations/incoming-button-click.md) when configuring the receiving workflow.
