How Do You Add an In-App Feedback Widget?
Create a widget for the surface you want feedback on, create a browser-safe publishable key, and install the feedback SDK in your app. In Deck, the widget lives in Manage β Deck Collect. Each submission shows there right away, and written feedback becomes insights and themes alongside your other customer feedback.
Why In-Product Feedback Gets Lost
Customers react to a feature in the moment, inside your product. By the time a survey goes out, the detail is gone. A homemade feedback form ends up in a database table or a Slack channel nobody reads, never next to the rest of your customer evidence.
How Deck Collect Brings In-App Feedback Next to Your Evidence
A Deck feedback widget sends in-product feedback straight into Deck as its own source. Written responses become insights and themes next to support, interviews, and surveys. Link the widget to a Project and new responses land on that Project's Feedback tab. The SDK uses a browser-safe publishable key, so no secret ships in your app.
How to Add an In-App Feedback Widget with Deck
Run it yourself in Deck, or hand it to your AI agent. Same steps, same result.
- 01
Decide Where Feedback Should Appear
Pick the pages, surfaces, or user actions you want feedback on. Choose thumbs, free text, or both. Then choose the SDK's built-in dialog, or your own UI with headless submit.
- 02
Create the Widget
Open Manage β Deck Collect and click Create widget. Name it after the surface, such as βSettings panelβ, and copy the widget ID (wgt_β¦). Link it to a Project if you want future responses on that Project's Feedback tab.
- 03
Create a Publishable Key
Open Settings β Deck Collect SDK and create a publishable key. Copy the full pk_β¦ value right away, because Deck shows it only once. Store it in NEXT_PUBLIC_DECK_PUBLISHABLE_KEY, or DECK_PUBLISHABLE_KEY for server-only code.
- 04
Install the SDK
Add @deck-io/feedback and wrap your app in DeckProvider with the key from the environment and a stable user ID. Mount FeedbackDialog, ThumbsFeedback, or the headless submit with your widget ID. Deck also shows a copy-paste install snippet in Settings β Deck Collect SDK.
- 05
Send One Test Submission
Run your product and send one piece of feedback through the widget. The raw response shows under Manage β Deck Collect β [your widget] right away. Written feedback becomes insights on Deck's weekday batch schedule.
Install the Feedback Widget with Your Coding Agent
Prefer Claude, ChatGPT, Cursor, or another MCP client? Paste this prompt. Your agent runs the same workflow through Deck MCP and checks with you before it changes anything.
You need
- Deck MCP connected to your agent
- An agent with access to your codebase
Your agent starts with list_widgets.
Agent Prompt
Paste This into Your Agent
Use Deck MCP. Fetch and follow https://docs.getdeck.io/docs/agents/workflows/install-feedback-widget.md
Feedback Widget Install Checklist
## Widget plan- Surface: [page or action, e.g. Settings panel]- Format: Thumbs / free text / both- UI: Built-in dialog / own UI with headless submit- Project to link: [Project name or none]- IN DECK[ ] Widget created in Manage β Deck Collect. ID: wgt_[β¦][ ] Publishable key created in Settings β Deck Collect SDK and stored in the app environment## Environment- NEXT_PUBLIC_DECK_PUBLISHABLE_KEY: Browser and React code (Vite: VITE_DECK_PUBLISHABLE_KEY)- DECK_PUBLISHABLE_KEY: Server-only code- IN THE CODE[ ] @deck-io/feedback installed[ ] DeckProvider near the root, key read from the environment[ ] user.id is a stable product user ID[ ] FeedbackDialog, ThumbsFeedback, or headless submit mounted with widgetId[ ] context holds IDs and enums only, no personal data[ ] No key committed to the repo, and never a dk_ key## Test[ ] One test submission shows under Manage β Deck Collect β [widget][ ] Written feedback checked after the next weekday batch