curl --request POST \
--url https://geniusforms.ai/api/v1/forms/{id}/analytics/generate \
--header 'X-API-Key: <api-key>'
{
"id": 1,
"formId": 208,
"totalResponses": 42,
"completionRate": 100,
"insights": {
"summary": "Your Customer Feedback form received 42 responses with predominantly positive sentiment.",
"insights": [
"87% of respondents rated their experience 4 or 5 stars",
"Email was the most requested follow-up method"
],
"recommendations": [
"Consider adding a free-text field to capture specific improvement suggestions",
"Follow up with the 13% who gave low ratings"
],
"keyMetrics": {
"responseRate": "87%",
"topAnswer": "Very Satisfied",
"sentiment": "positive"
}
},
"lastAnalyzed": "2023-11-07T05:31:56Z"
}
Analytics
Generate Analytics
Trigger AI analysis on a form’s responses. Generates a summary, insights, recommendations, and key metrics. Overwrites any previously stored analytics for this form.
POST
/
forms
/
{id}
/
analytics
/
generate
Generate Analytics
curl --request POST \
--url https://geniusforms.ai/api/v1/forms/{id}/analytics/generate \
--header 'X-API-Key: <api-key>'
{
"id": 1,
"formId": 208,
"totalResponses": 42,
"completionRate": 100,
"insights": {
"summary": "Your Customer Feedback form received 42 responses with predominantly positive sentiment.",
"insights": [
"87% of respondents rated their experience 4 or 5 stars",
"Email was the most requested follow-up method"
],
"recommendations": [
"Consider adding a free-text field to capture specific improvement suggestions",
"Follow up with the 13% who gave low ratings"
],
"keyMetrics": {
"responseRate": "87%",
"topAnswer": "Very Satisfied",
"sentiment": "positive"
}
},
"lastAnalyzed": "2023-11-07T05:31:56Z"
}