---
schema_version: "1"
id: 9bc7ae46f56b2ad4ea47b52c021983740aca0bdfd622d8af163a8db000de87d5
title: Send Feedback Action
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/automate_flow_ref_elements_agent_api_send_feedback.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.automate_flow_ref_elements_agent_api_send_feedback.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 7e8a2876245485e98630a041671d1452304de01522020928737c3ed5d07099e7
description: This action sends a message to collect feedback for a specified agent session.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Send Feedback Action

This action sends a message to collect feedback for a specified agent session.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions. Required add-on licenses vary by agent type.</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=platform.flow_ref_supported_editions.htm&amp;release=264.0.0&amp;type=5" title="Learn about the editions and user interfaces that support Flow Builder. Some Flow Builder features integrate with other Salesforce products that require additional licenses.">View licenses for integrated features.</a></td></tr></tbody></table>

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.