User Feedback
WorkflowAI allows you to collect feedback from users about your AI features.
Feedback loop
Add a feedback button to your product: using our web SDK, or by using our API.
Users click the button and give feedback.
Your team can view the feedback in the WorkflowAI dashboard.
Improve instructions based on the feedback.
How it works
Feedback Token Lifecycle
The feedback system operates through a secure feedback_token
that links user feedback to specific AI interactions:
Token Generation: When you call the
/run
endpoint to execute an AI agent, WorkflowAI automatically generates a uniquefeedback_token
for that specific interaction.Token Security: The
feedback_token
is a cryptographically signed token that:Is valid only for the specific run that generated it
Cannot be used to access any sensitive data
Requires no additional authentication to submit feedback
Token Propagation: Your application needs to pass this token from your backend to your frontend client application where feedback will be collected.
Feedback Submission: When a user provides feedback, your application sends the
feedback_token
along with the feedback data (positive/negative rating and optional comment) to WorkflowAI.Storage and Analysis: WorkflowAI associates the feedback with the original run, making it available in your dashboard for analysis.
User ID Tracking
The optional
user_id
parameter allows tracking feedback on a per-user basisEach unique combination of (
feedback_token
,user_id
) can have only one feedback entrySubmitting new feedback with the same (
feedback_token
,user_id
) pair will overwrite previous feedbackThis prevents duplicate feedback while allowing users to change their minds
Data Flow Diagram
Access feedback_token
feedback_token
feedback_token
needs to be accessed from the client application that will be used to post feedback.
Python SDK
Typescript SDK
API
The feedback token is returned by the run endpoint. See the endpoint documentation.
Post feedback
Web SDK
The web SDK is the simplest way to add a feedback button to your web app.
React
SDKs/REST API
Use our API if:
you want full customization over the feedback button and send the feedback via your own backend.
you want to post feedback from a non-browser environment (e.g. mobile apps).
Python
Typescript
REST API
Posting feedback is a single non authenticated API call with a feedback_token
and outcome
in the body.
See the full documentation.
View user feedback
Go to the "User Feedbacks" section from the menu, and you'll see a list of feedback.

Last updated
Was this helpful?