This can be accomplished using a webhook.
The callback URL to use is: https://surveysparrow5110.freshdesk.com/api/v2/tickets/{variable_ticket.id}/notes
The payload should include the following JSON data:
{
"body": "Received feedback from a customer regarding this ticket, and the rating is: {question_7438024}"
}