You are here:
Send Feedback Action
This action sends a message to collect feedback for a specified agent session.
Required Editions
| Available in: Lightning Experience |
| Available in: Enterprise, Performance, Unlimited, and Developer Editions. Required add-on licenses vary by agent type. |
| View licenses for integrated features. |
In Flow Builder, add an Action element to your flow. Select the AI Agent API category. Then, select the Send Feedback action.
Set Input Values
| Field | Description |
|---|---|
| Feedback Message | Required. An Apex AgentInvAction__AIAgentAPIV1_FeedbackMessage record that contains the feedback message to send. |
| Session ID | Required. The ID of the current agent session. |
| Tenant Key ID | Reserved for internal use only. |
Set Output Values
| Set Field | Description |
|---|---|
| 200 | Batched response (headless) |
| 400 Exception | Bad request |
| 401 Exception | Access bearer token is missing or invalid |
| 403 Exception | User is forbidden from accessing the resource |
| 404 Exception | Resource not found |
| 422 Exception | Any exception that occurred during the request execution |
| 423 Exception | Server is busy and cannot process the request at this time |
| 429 Exception | Too many requests for the server to handle |
| 503 Exception | Service is unavailable possibly because Apex or flow calls timed out |
| Default Exception | Server is busy and cannot process the request at this time |
| Response Code | The response code associated with the exception message. |
Usage
This action is available only if the following are true. Otherwise, the action fails.
- Agentforce is enabled.
- The user who runs the flow has the Manage AI Agents permission.
- The specified agent has an active version.
To set the Feedback Message input:
- Create an Apex-defined variable and select the AgentInvAction__AIAgentAPIV1_FeedbackMessage Apex class.
- Use Assignment elements to set the all of the variable's properties.
- Use the AgentInvAction__AIAgentAPIV1_FeedbackMessage variable as the Feedback Message input.
Did this article solve your issue?
Let us know so we can improve!

