You can redirect the client to this URL, instead of implementing the CSAT survey component yourself.
cURL
curl --request GET \ --url https://app.chatwoot.com/survey/responses/{conversation_uuid}
The uuid of the conversation
Success