const response = await api.followups.generate({ surveyName: 'Customer Satisfaction', question: 'How likely are you to recommend our service?', answer: 'Very likely, the customer service is excellent', surveyIdentifiers: { surveyIdentifier: 'CSAT-2024-Q1', questionIdentifier: 'NPS-1' }});
response = api.followups.generate(
survey_name='Customer Satisfaction',
question='How likely are you to recommend our service?',
answer='Very likely, the customer service is excellent',
surveyIdentifiers={
'survey_identifier': 'CSAT-2024-Q1',
'question_identifier': 'NPS-1'
}
)
curl --request POST \
--url https://surveys.getaftercare.com/api/v1/followups \
--header 'Content-Type: application/json' \
--header 'X-Aftercare-Key: <api-key>' \
--data '
{
"surveyName": "Customer Satisfaction",
"surveyDescription": "Tracking customer satisfaction and loyalty for the XYZ Company",
"question": "How likely are you to recommend our service?",
"questionContext": "I want to understand specifically why a customer is convinced to recommend our service. If they are not recommending our service, I want to know why.",
"answer": "Very likely, the customer service is excellent",
"surveyIdentifiers": {
"surveyIdentifier": "CSAT-2024-Q1",
"questionIdentifier": "NPS-1"
},
"guidanceBehavior": "Verbose"
}
'
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://surveys.getaftercare.com/api/v1/followups",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'surveyName' => 'Customer Satisfaction',
'surveyDescription' => 'Tracking customer satisfaction and loyalty for the XYZ Company',
'question' => 'How likely are you to recommend our service?',
'questionContext' => 'I want to understand specifically why a customer is convinced to recommend our service. If they are not recommending our service, I want to know why.',
'answer' => 'Very likely, the customer service is excellent',
'surveyIdentifiers' => [
'surveyIdentifier' => 'CSAT-2024-Q1',
'questionIdentifier' => 'NPS-1'
],
'guidanceBehavior' => 'Verbose'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Aftercare-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://surveys.getaftercare.com/api/v1/followups"
payload := strings.NewReader("{\n \"surveyName\": \"Customer Satisfaction\",\n \"surveyDescription\": \"Tracking customer satisfaction and loyalty for the XYZ Company\",\n \"question\": \"How likely are you to recommend our service?\",\n \"questionContext\": \"I want to understand specifically why a customer is convinced to recommend our service. If they are not recommending our service, I want to know why.\",\n \"answer\": \"Very likely, the customer service is excellent\",\n \"surveyIdentifiers\": {\n \"surveyIdentifier\": \"CSAT-2024-Q1\",\n \"questionIdentifier\": \"NPS-1\"\n },\n \"guidanceBehavior\": \"Verbose\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Aftercare-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
HttpResponse<String> response = Unirest.post("https://surveys.getaftercare.com/api/v1/followups")
.header("X-Aftercare-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"surveyName\": \"Customer Satisfaction\",\n \"surveyDescription\": \"Tracking customer satisfaction and loyalty for the XYZ Company\",\n \"question\": \"How likely are you to recommend our service?\",\n \"questionContext\": \"I want to understand specifically why a customer is convinced to recommend our service. If they are not recommending our service, I want to know why.\",\n \"answer\": \"Very likely, the customer service is excellent\",\n \"surveyIdentifiers\": {\n \"surveyIdentifier\": \"CSAT-2024-Q1\",\n \"questionIdentifier\": \"NPS-1\"\n },\n \"guidanceBehavior\": \"Verbose\"\n}")
.asString();
require 'uri'
require 'net/http'
url = URI("https://surveys.getaftercare.com/api/v1/followups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Aftercare-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"surveyName\": \"Customer Satisfaction\",\n \"surveyDescription\": \"Tracking customer satisfaction and loyalty for the XYZ Company\",\n \"question\": \"How likely are you to recommend our service?\",\n \"questionContext\": \"I want to understand specifically why a customer is convinced to recommend our service. If they are not recommending our service, I want to know why.\",\n \"answer\": \"Very likely, the customer service is excellent\",\n \"surveyIdentifiers\": {\n \"surveyIdentifier\": \"CSAT-2024-Q1\",\n \"questionIdentifier\": \"NPS-1\"\n },\n \"guidanceBehavior\": \"Verbose\"\n}"
response = http.request(request)
puts response.read_body
{ "followupQuestion": "What specific aspects of our customer service impressed you the most?", "responseEvaluation": { "completeness": 75, "relevance": 90 }, "threadId": "7a54b8da-f65d-4946-9c9a-f202e0cc29c8", "responseIdentifier": "12345"}
{
"code": "GATEWAY_TIMEOUT",
"message": "The request timed out"
}
AI Followup Generation
Create AI Followup Question
Generates a contextual followup question based on a survey response
POST
/
api
/
v1
/
followups
JavaScript
const response = await api.followups.generate({ surveyName: 'Customer Satisfaction', question: 'How likely are you to recommend our service?', answer: 'Very likely, the customer service is excellent', surveyIdentifiers: { surveyIdentifier: 'CSAT-2024-Q1', questionIdentifier: 'NPS-1' }});
response = api.followups.generate(
survey_name='Customer Satisfaction',
question='How likely are you to recommend our service?',
answer='Very likely, the customer service is excellent',
surveyIdentifiers={
'survey_identifier': 'CSAT-2024-Q1',
'question_identifier': 'NPS-1'
}
)
curl --request POST \
--url https://surveys.getaftercare.com/api/v1/followups \
--header 'Content-Type: application/json' \
--header 'X-Aftercare-Key: <api-key>' \
--data '
{
"surveyName": "Customer Satisfaction",
"surveyDescription": "Tracking customer satisfaction and loyalty for the XYZ Company",
"question": "How likely are you to recommend our service?",
"questionContext": "I want to understand specifically why a customer is convinced to recommend our service. If they are not recommending our service, I want to know why.",
"answer": "Very likely, the customer service is excellent",
"surveyIdentifiers": {
"surveyIdentifier": "CSAT-2024-Q1",
"questionIdentifier": "NPS-1"
},
"guidanceBehavior": "Verbose"
}
'
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://surveys.getaftercare.com/api/v1/followups",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'surveyName' => 'Customer Satisfaction',
'surveyDescription' => 'Tracking customer satisfaction and loyalty for the XYZ Company',
'question' => 'How likely are you to recommend our service?',
'questionContext' => 'I want to understand specifically why a customer is convinced to recommend our service. If they are not recommending our service, I want to know why.',
'answer' => 'Very likely, the customer service is excellent',
'surveyIdentifiers' => [
'surveyIdentifier' => 'CSAT-2024-Q1',
'questionIdentifier' => 'NPS-1'
],
'guidanceBehavior' => 'Verbose'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Aftercare-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://surveys.getaftercare.com/api/v1/followups"
payload := strings.NewReader("{\n \"surveyName\": \"Customer Satisfaction\",\n \"surveyDescription\": \"Tracking customer satisfaction and loyalty for the XYZ Company\",\n \"question\": \"How likely are you to recommend our service?\",\n \"questionContext\": \"I want to understand specifically why a customer is convinced to recommend our service. If they are not recommending our service, I want to know why.\",\n \"answer\": \"Very likely, the customer service is excellent\",\n \"surveyIdentifiers\": {\n \"surveyIdentifier\": \"CSAT-2024-Q1\",\n \"questionIdentifier\": \"NPS-1\"\n },\n \"guidanceBehavior\": \"Verbose\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Aftercare-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
HttpResponse<String> response = Unirest.post("https://surveys.getaftercare.com/api/v1/followups")
.header("X-Aftercare-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"surveyName\": \"Customer Satisfaction\",\n \"surveyDescription\": \"Tracking customer satisfaction and loyalty for the XYZ Company\",\n \"question\": \"How likely are you to recommend our service?\",\n \"questionContext\": \"I want to understand specifically why a customer is convinced to recommend our service. If they are not recommending our service, I want to know why.\",\n \"answer\": \"Very likely, the customer service is excellent\",\n \"surveyIdentifiers\": {\n \"surveyIdentifier\": \"CSAT-2024-Q1\",\n \"questionIdentifier\": \"NPS-1\"\n },\n \"guidanceBehavior\": \"Verbose\"\n}")
.asString();
require 'uri'
require 'net/http'
url = URI("https://surveys.getaftercare.com/api/v1/followups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Aftercare-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"surveyName\": \"Customer Satisfaction\",\n \"surveyDescription\": \"Tracking customer satisfaction and loyalty for the XYZ Company\",\n \"question\": \"How likely are you to recommend our service?\",\n \"questionContext\": \"I want to understand specifically why a customer is convinced to recommend our service. If they are not recommending our service, I want to know why.\",\n \"answer\": \"Very likely, the customer service is excellent\",\n \"surveyIdentifiers\": {\n \"surveyIdentifier\": \"CSAT-2024-Q1\",\n \"questionIdentifier\": \"NPS-1\"\n },\n \"guidanceBehavior\": \"Verbose\"\n}"
response = http.request(request)
puts response.read_body
{ "followupQuestion": "What specific aspects of our customer service impressed you the most?", "responseEvaluation": { "completeness": 75, "relevance": 90 }, "threadId": "7a54b8da-f65d-4946-9c9a-f202e0cc29c8", "responseIdentifier": "12345"}
{
"code": "GATEWAY_TIMEOUT",
"message": "The request timed out"
}
Authorizations
X-Aftercare-Key
string
header
required
API key for authentication
Headers
X-Request-Encoding
enum<string>
default:unicode
Specifies the encoding format of the request data. Use html if you are sending data that HTML entity encodes non-ASCII characters.
Available options:
unicode,
html
X-Response-Encoding
enum<string>
default:unicode
Specifies the preferred encoding format for the response data. Use html if you are expecting to receive data that HTML entity encodes non-ASCII characters.
Available options:
unicode,
html
Body
application/json
question
string
required
The question that was asked to the respondent
Example:
"How likely are you to recommend our service?"
answer
string
required
The answer to the question provided by the respondent
Example:
"Very likely, the customer service is excellent"
surveyName
string
The name of the survey as it will appear in the Aftercare platform
Example:
"Customer Satisfaction"
surveyDescription
string
A description of the survey purpose and background.
It will be used to give the AI more context around specific aspects of the survey (e.g. brand/product names, movie names, etc.)
Example:
"Quarterly survey tracking customer satisfaction and loyalty for the XYZ Company"
questionContext
string
A description of what you are trying to learn from the respondent for this question.
This will be used to give the AI guidance on what followup questions to ask.
Example:
"I want to understand specifically why a customer is convinced to recommend our service. If they are not recommending our service, I want to know why."
surveyIdentifiers
object
Optional identifiers to tie responses to a specific survey and question.
If provided, Aftercare will use these to generate analytics over your survey responses.
If included, both survey and question identifiers are required.
Optional language to use for the followup question generation.
If not provided, Aftercare will default to the language it determines best matches the response.
Set response language to match_response_language to automatically set the language of the generated follow up question to the language of the respondent's answer.
Example:
"French"
threadId
string
A unique identifier for the follow-up response thread.
If provided, Aftercare will follow-up questions and answers in a thread with the original question and answer.
If not provided, Aftercare will automatically generate a new thread id you can use in a subsequent follow-up.
Example:
"7a54b8da-f65d-4946-9c9a-f202e0cc29c8"
responseIdentifier
string
Optional unique identifier for a respondent's entire response to a survey.
Aftercare will use this to build a data model tie together questions and answer pairs for a single response.
Example:
"12345"
guidanceBehavior
enum<string>
default:Succinct
Different ways Aftercare AI will generate follow-up questions based on incomplete or irrelevant user input.
Succinct - The AI will not generate a follow-up question if the response is irrelevant or complete. This occurs when the relevance score is below 25 or the completeness score is above 70. This is the default behavior.
Redirection - The AI will return a follow-up question that redirects the user to answering the top-level question if it is irrelevant and incomplete.
A follow-up question will be generated as long as the completeness score is below 70.
Verbose - The AI will always return a follow-up question regardless of the relevance or completeness of the response.
Available options:
Succinct,
Redirection,
Verbose
Response
Successfully generated followup question
followupQuestion
string
required
The generated followup question
Example:
"What specific aspects of our customer service impressed you the most?"
responseEvaluation
object
required
Show child attributes
threadId
string
The unique identifier for the follow-up thread
Example:
"7a54b8da-f65d-4946-9c9a-f202e0cc29c8"
responseIdentifier
string
Optional identifier for the survey response
Example:
"12345"
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Starter Kit","colors":{"primary":"#0D9373","light":"#07C983","dark":"#0D9373"},"favicon":"/favicon.svg","logo":{"light":"https://mintcdn.com/aftercare/e1mHkmMes6jz1ugc/logo/logo.png?fit=max\u0026auto=format\u0026n=e1mHkmMes6jz1ugc\u0026q=85\u0026s=30ff22f1cb78b1ef23d5d22b8bb02d36","dark":"https://mintcdn.com/aftercare/e1mHkmMes6jz1ugc/logo/logo-white.png?fit=max\u0026auto=format\u0026n=e1mHkmMes6jz1ugc\u0026q=85\u0026s=d718f8b2f395079a8cd8f01bf7ac370b"},"navbar":{"links":[{"label":"Support","href":"mailto:anand@getaftercare.com"}],"primary":{"type":"button","label":"Dashboard","href":"https://surveys.getaftercare.com"}},"footer":{"socials":{"x":"https://x.com/mintlify","github":"https://github.com/mintlify","linkedin":"https://linkedin.com/company/mintlify"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Discord","href":"https://discord.gg/Rn2yZ3He","icon":"discord"},{"anchor":"Slack","href":"https://join.slack.com/t/aftercareusers/shared_invite/zt-30ezqu0sy-0YybIITmOcx5BEpdR3mWCQ","icon":"slack"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"aftercare","hasAudioNarration":false,"actualSubdomain":"aftercare","customDomains":["docs.getaftercare.com"],"gitSource":{"type":"github","owner":"kontractify","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae923e17d386b1c81efd641:success","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"Documentation","count":12},{"language":"default","tag":"Get Started","count":8},{"language":"default","tag":"API Reference","count":8},{"language":"default","tag":"Integrations","count":5},{"language":"default","tag":"Core Products","count":4},{"language":"default","tag":"AI Coding","count":3},{"language":"default","tag":"AI Data Quality Evaluation","count":3},{"language":"default","tag":"AI Followup Generation","count":1},{"language":"default","tag":"API Documentation","count":1}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/followups/create","slug":"/api-reference/followups/create","pageMetadata":{"title":"Create AI Followup Question","openapi":"POST /api/v1/followups","description":"Generates a contextual followup question based on a survey response","href":"/api-reference/followups/create","hidden":false},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Generates a contextual followup question based on a survey response\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create AI Followup Question","openapi":"POST /api/v1/followups","description":"Generates a contextual followup question based on a survey response","href":"/api-reference/followups/create","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Followups"],"summary":"Generate a followup question","description":"Generates a contextual followup question based on a survey response","operationId":"generateFollowup","parameters":["1437c432-06c0-4e48-a7ef-f4abbaa12b95","48c8c2d2-2b01-477a-9795-e8dacaaa37cd"],"security":["f1fc97b3-e96e-4705-b23a-bba9a92f00c1"],"x-codeSamples":[{"lang":"JavaScript","source":"const response = await api.followups.generate({\n surveyName: 'Customer Satisfaction',\n question: 'How likely are you to recommend our service?',\n answer: 'Very likely, the customer service is excellent',\n surveyIdentifiers: {\n surveyIdentifier: 'CSAT-2024-Q1',\n questionIdentifier: 'NPS-1'\n }\n});"},{"lang":"Python","source":"response = api.followups.generate(\n survey_name='Customer Satisfaction',\n question='How likely are you to recommend our service?',\n answer='Very likely, the customer service is excellent',\n surveyIdentifiers={\n 'survey_identifier': 'CSAT-2024-Q1',\n 'question_identifier': 'NPS-1'\n }\n)"}],"requestBody":"78cd9ddc-1b26-4cc0-9fe4-0e35671b3e0f","responses":{"200":"527a10fd-cc43-4fef-aeb6-6ce46de5d319","400":"a46b561a-1ab6-44e0-a1d0-47c9f09ca47e","403":"c6c3e43e-9797-4366-a421-b2aac1edf3f5","404":"7c4ca560-970a-4227-8aa8-a6d2afcf88f1","500":"0a112b5c-1b7d-4369-b8e4-c773ddeaf89f","504":"2c62708d-a52a-448d-a38c-95ba26b72245"},"method":"post","type":"path","servers":["e7cb3cb4-2e43-4c33-aa9b-d8ac8fd02c5c","7e3bd66b-b069-43c1-a556-b9b888563097"],"path":"/api/v1/followups","baseUrlOptions":["https://surveys.getaftercare.com","https://staging.aftercareai.com"],"title":"Generate a followup question","codeSamples":[{"lang":"JavaScript","source":"const response = await api.followups.generate({\n surveyName: 'Customer Satisfaction',\n question: 'How likely are you to recommend our service?',\n answer: 'Very likely, the customer service is excellent',\n surveyIdentifiers: {\n surveyIdentifier: 'CSAT-2024-Q1',\n questionIdentifier: 'NPS-1'\n }\n});"},{"lang":"Python","source":"response = api.followups.generate(\n survey_name='Customer Satisfaction',\n question='How likely are you to recommend our service?',\n answer='Very likely, the customer service is excellent',\n surveyIdentifiers={\n 'survey_identifier': 'CSAT-2024-Q1',\n 'question_identifier': 'NPS-1'\n }\n)"}],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"1437c432-06c0-4e48-a7ef-f4abbaa12b95":{"in":"header","name":"X-Request-Encoding","schema":{"type":"string","enum":["unicode","html"],"default":"unicode","isRequired":false,"description":"Specifies the encoding format of the request data. Use `html` if you are sending data that HTML entity encodes non-ASCII characters.","uniqueKey":"","typeLabel":"enum\u003cstring>"},"required":false,"description":"Specifies the encoding format of the request data. Use `html` if you are sending data that HTML entity encodes non-ASCII characters."},"48c8c2d2-2b01-477a-9795-e8dacaaa37cd":{"in":"header","name":"X-Response-Encoding","schema":{"type":"string","enum":["unicode","html"],"default":"unicode","isRequired":false,"description":"Specifies the preferred encoding format for the response data. Use `html` if you are expecting to receive data that HTML entity encodes non-ASCII characters.","uniqueKey":"","typeLabel":"enum\u003cstring>"},"required":false,"description":"Specifies the preferred encoding format for the response data. Use `html` if you are expecting to receive data that HTML entity encodes non-ASCII characters."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["question","answer"],"properties":{"question":{"type":"string","description":"The question that was asked to the respondent","example":"How likely are you to recommend our service?","isRequired":true,"uniqueKey":"question","typeLabel":"string"},"answer":{"type":"string","description":"The answer to the question provided by the respondent","example":"Very likely, the customer service is excellent","isRequired":true,"uniqueKey":"answer","typeLabel":"string"},"surveyName":{"type":"string","description":"The name of the survey as it will appear in the Aftercare platform","example":"Customer Satisfaction","uniqueKey":"surveyName","typeLabel":"string"},"surveyDescription":{"type":"string","description":"A description of the survey purpose and background.\n\nIt will be used to give the AI more context around specific aspects of the survey (e.g. brand/product names, movie names, etc.)","example":"Quarterly survey tracking customer satisfaction and loyalty for the XYZ Company","uniqueKey":"surveyDescription","typeLabel":"string"},"questionContext":{"type":"string","description":"A description of what you are trying to learn from the respondent for this question.\n\nThis will be used to give the AI guidance on what followup questions to ask.","example":"I want to understand specifically why a customer is convinced to recommend our service. If they are not recommending our service, I want to know why.","uniqueKey":"questionContext","typeLabel":"string"},"surveyIdentifiers":{"type":"object","description":"Optional identifiers to tie responses to a specific survey and question.\nIf provided, Aftercare will use these to generate analytics over your survey responses.\n\nIf included, both survey and question identifiers are required.\n\nSee the [Aftercare Data Model](/aftercareDataModel) to learn more.","required":["surveyIdentifier","questionIdentifier"],"properties":{"surveyIdentifier":{"type":"string","description":"Optional unique identifier for the survey.\n\nAftercare will use this to build a data model to associate questions and answers with the survey.","example":"CSAT-2024-Q1","isRequired":true,"uniqueKey":"surveyIdentifiers.surveyIdentifier","typeLabel":"string"},"questionIdentifier":{"type":"string","description":"Optional unique identifier for the question.\n\nAftercare will use this to build a data model to track questions across a survey","example":"Q1","isRequired":true,"uniqueKey":"surveyIdentifiers.questionIdentifier","typeLabel":"string"}},"uniqueKey":"surveyIdentifiers","typeLabel":"object"},"responseLanguage":{"type":"string","description":"Optional language to use for the followup question generation.\n\nIf not provided, Aftercare will default to the language it determines best matches the response.\n\nSet response language to `match_response_language` to automatically set the language of the generated follow up question to the language of the respondent's answer.","example":"French","uniqueKey":"responseLanguage","typeLabel":"string"},"threadId":{"type":"string","description":"A unique identifier for the follow-up response thread.\n\nIf provided, Aftercare will follow-up questions and answers in a thread with the original question and answer.\n\nIf not provided, Aftercare will automatically generate a new thread id you can use in a subsequent follow-up.","example":"7a54b8da-f65d-4946-9c9a-f202e0cc29c8","uniqueKey":"threadId","typeLabel":"string"},"responseIdentifier":{"type":"string","description":"Optional unique identifier for a respondent's entire response to a survey.\n\nAftercare will use this to build a data model tie together questions and answer pairs for a single response.","example":"12345","uniqueKey":"responseIdentifier","typeLabel":"string"},"guidanceBehavior":{"type":"string","description":"Different ways Aftercare AI will generate follow-up questions based on incomplete or irrelevant user input.\n\n* `Succinct` - The AI will not generate a follow-up question if the response is irrelevant or complete. This occurs when the relevance score is below 25 or the completeness score is above 70. This is the default behavior.\n* `Redirection` - The AI will return a follow-up question that redirects the user to answering the top-level question if it is irrelevant and incomplete.\nA follow-up question will be generated as long as the completeness score is below 70.\n* `Verbose` - The AI will always return a follow-up question regardless of the relevance or completeness of the response.","enum":["Succinct","Redirection","Verbose"],"default":"Succinct","uniqueKey":"guidanceBehavior","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"example":{"surveyName":"Customer Satisfaction","surveyDescription":"Tracking customer satisfaction and loyalty for the XYZ Company","question":"How likely are you to recommend our service?","questionContext":"I want to understand specifically why a customer is convinced to recommend our service. If they are not recommending our service, I want to know why.","answer":"Very likely, the customer service is excellent","surveyIdentifiers":{"surveyIdentifier":"CSAT-2024-Q1","questionIdentifier":"NPS-1"},"guidanceBehavior":"Verbose"},"examples":{"Example":{"title":"Example","value":{"surveyName":"Customer Satisfaction","surveyDescription":"Tracking customer satisfaction and loyalty for the XYZ Company","question":"How likely are you to recommend our service?","questionContext":"I want to understand specifically why a customer is convinced to recommend our service. If they are not recommending our service, I want to know why.","answer":"Very likely, the customer service is excellent","surveyIdentifiers":{"surveyIdentifier":"CSAT-2024-Q1","questionIdentifier":"NPS-1"},"guidanceBehavior":"Verbose"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"527a10fd-cc43-4fef-aeb6-6ce46de5d319":{"description":"Successfully generated followup question","content":{"application/json":{"schema":{"type":"object","required":["followupQuestion","responseEvaluation"],"properties":{"followupQuestion":{"type":"string","description":"The generated followup question","example":"What specific aspects of our customer service impressed you the most?","isRequired":true,"uniqueKey":"followupQuestion","typeLabel":"string"},"responseEvaluation":{"type":"object","required":["completeness","relevance"],"properties":{"completeness":{"type":"number","description":"A number between 0 and 100 that represents how completely the response answered the topic question.\nThe higher the score, the more complete the response.","minimum":0,"maximum":100,"isRequired":true,"uniqueKey":"responseEvaluation.completeness","typeLabel":"number"},"relevance":{"type":"number","description":"A number between 0 and 100 that represents the relevance of the response to the topic question.\nThe higher the score, the more relevant the response.","minimum":0,"maximum":100,"isRequired":true,"uniqueKey":"responseEvaluation.relevance","typeLabel":"number"}},"isRequired":true,"uniqueKey":"responseEvaluation","typeLabel":"object"},"threadId":{"type":"string","description":"The unique identifier for the follow-up thread","example":"7a54b8da-f65d-4946-9c9a-f202e0cc29c8","uniqueKey":"threadId","typeLabel":"string"},"responseIdentifier":{"type":"string","description":"Optional identifier for the survey response","example":"12345","uniqueKey":"responseIdentifier","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"followupQuestion":"What specific aspects of our customer service impressed you the most?","responseEvaluation":{"completeness":75,"relevance":90},"threadId":"7a54b8da-f65d-4946-9c9a-f202e0cc29c8","responseIdentifier":"12345"},"examples":{"Example":{"title":"Example","value":{"followupQuestion":"What specific aspects of our customer service impressed you the most?","responseEvaluation":{"completeness":75,"relevance":90},"threadId":"7a54b8da-f65d-4946-9c9a-f202e0cc29c8","responseIdentifier":"12345"}}},"exampleType":"examples"}},"exampleType":"examples"},"a46b561a-1ab6-44e0-a1d0-47c9f09ca47e":{"description":"Bad request - invalid input parameters","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Error code","example":"INVALID_REQUEST","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Error message","example":"Invalid request parameters","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","description":"Additional error details","example":{"question":"Question is required"},"uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"INVALID_REQUEST","message":"Invalid request parameters","details":{"question":"Question is required"}},"examples":{"Example":{"title":"Example","value":{"code":"INVALID_REQUEST","message":"Invalid request parameters","details":{"question":"Question is required"}}}},"exampleType":"examples"}},"exampleType":"examples"},"c6c3e43e-9797-4366-a421-b2aac1edf3f5":{"description":"Forbidden - Missing or invalid API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Error code","example":"INVALID_REQUEST","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Error message","example":"Invalid request parameters","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","description":"Additional error details","example":{"question":"Question is required"},"uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"INVALID_API_KEY","message":"Invalid or missing API key"},"examples":{"Example":{"title":"Example","value":{"code":"INVALID_API_KEY","message":"Invalid or missing API key"}}},"exampleType":"examples"}},"exampleType":"examples"},"7c4ca560-970a-4227-8aa8-a6d2afcf88f1":{"description":"Resource not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Error code","example":"INVALID_REQUEST","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Error message","example":"Invalid request parameters","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","description":"Additional error details","example":{"question":"Question is required"},"uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"NOT_FOUND","message":"Requested resource not found"},"examples":{"Example":{"title":"Example","value":{"code":"NOT_FOUND","message":"Requested resource not found"}}},"exampleType":"examples"}},"exampleType":"examples"},"0a112b5c-1b7d-4369-b8e4-c773ddeaf89f":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Error code","example":"INVALID_REQUEST","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Error message","example":"Invalid request parameters","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","description":"Additional error details","example":{"question":"Question is required"},"uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"INTERNAL_ERROR","message":"An unexpected error occurred"},"examples":{"Example":{"title":"Example","value":{"code":"INTERNAL_ERROR","message":"An unexpected error occurred"}}},"exampleType":"examples"}},"exampleType":"examples"},"2c62708d-a52a-448d-a38c-95ba26b72245":{"description":"Gateway timeout","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Error code","example":"INVALID_REQUEST","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Error message","example":"Invalid request parameters","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","description":"Additional error details","example":{"question":"Question is required"},"uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"GATEWAY_TIMEOUT","message":"The request timed out"},"examples":{"Example":{"title":"Example","value":{"code":"GATEWAY_TIMEOUT","message":"The request timed out"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"f1fc97b3-e96e-4705-b23a-bba9a92f00c1":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-Aftercare-Key","description":"API key for authentication","scopes":[]}}},"servers":{"e7cb3cb4-2e43-4c33-aa9b-d8ac8fd02c5c":{"url":"https://surveys.getaftercare.com","description":"Production server"},"7e3bd66b-b069-43c1-a556-b9b888563097":{"url":"https://staging.aftercareai.com","description":"Staging server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-Aftercare-Key","description":"API key for authentication","scopes":[]},"schema":{"title":"X-Aftercare-Key","type":"string","description":"API key for authentication","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"X-Aftercare-Key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"aftercare","siteName":"Starter Kit","title":"Create AI Followup Question - Starter Kit","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T05:43:31.556Z","originalFileLocation":"api-reference/followups/create.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Generates a contextual followup question based on a survey response\">\u003cmeta data-mint-head name=\"application-name\" content=\"Starter Kit\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/aftercare/IkN8yax3vlOiM3z-/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/aftercare/IkN8yax3vlOiM3z-/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/aftercare/IkN8yax3vlOiM3z-/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/aftercare/IkN8yax3vlOiM3z-/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/aftercare/IkN8yax3vlOiM3z-/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/aftercare/IkN8yax3vlOiM3z-/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/aftercare/IkN8yax3vlOiM3z-/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/aftercare/IkN8yax3vlOiM3z-/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/aftercare/IkN8yax3vlOiM3z-/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create AI Followup Question - Starter Kit\">\u003cmeta data-mint-head property=\"og:description\" content=\"Generates a contextual followup question based on a survey response\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Starter Kit\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.getaftercare.com/api-reference/followups/create\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://aftercare.mintlify.site/_mintlify/api/og/v2?division=AI+Followup+Generation\u0026amp;title=Create+AI+Followup+Question\u0026amp;description=Generates+a+contextual+followup+question+based+on+a+survey+response\u0026amp;theme=64fb4969372e7acb11c19d0e\u0026amp;signature=ae098fcc5016679025282f1df70d69e6913fc6f430e3d56800de54578122ddad\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create AI Followup Question - Starter Kit\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Generates a contextual followup question based on a survey response\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://aftercare.mintlify.site/_mintlify/api/og/v2?division=AI+Followup+Generation\u0026amp;title=Create+AI+Followup+Question\u0026amp;description=Generates+a+contextual+followup+question+based+on+a+survey+response\u0026amp;theme=64fb4969372e7acb11c19d0e\u0026amp;signature=ae098fcc5016679025282f1df70d69e6913fc6f430e3d56800de54578122ddad\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/aftercare/IkN8yax3vlOiM3z-/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Starter Kit\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D9373\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.getaftercare.com/api-reference/followups/create\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/followups/create.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.getaftercare.com/#organization\",\"name\":\"Starter Kit\",\"url\":\"https://docs.getaftercare.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/aftercare/e1mHkmMes6jz1ugc/logo/logo.png?fit=max\u0026auto=format\u0026n=e1mHkmMes6jz1ugc\u0026q=85\u0026s=30ff22f1cb78b1ef23d5d22b8bb02d36\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.getaftercare.com#website\",\"name\":\"Starter Kit\",\"url\":\"https://docs.getaftercare.com\",\"publisher\":{\"@id\":\"https://docs.getaftercare.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.getaftercare.com/api-reference/followups/create#webpage\",\"url\":\"https://docs.getaftercare.com/api-reference/followups/create\",\"name\":\"Create AI Followup Question\",\"description\":\"Generates a contextual followup question based on a survey response\",\"dateModified\":\"2026-01-07T05:43:31.556Z\",\"isPartOf\":{\"@id\":\"https://docs.getaftercare.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.getaftercare.com/api-reference/followups/create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.getaftercare.com/api-reference/followups/create#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Starter Kit\",\"item\":\"https://docs.getaftercare.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create AI Followup Question\",\"item\":\"https://docs.getaftercare.com/api-reference/followups/create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.getaftercare.com/api-reference/followups/create#apireference\",\"headline\":\"Create AI Followup Question\",\"name\":\"Create AI Followup Question\",\"description\":\"Generates a contextual followup question based on a survey response\",\"url\":\"https://docs.getaftercare.com/api-reference/followups/create\",\"mainEntityOfPage\":{\"@id\":\"https://docs.getaftercare.com/api-reference/followups/create#webpage\"},\"dateModified\":\"2026-01-07T05:43:31.556Z\",\"publisher\":{\"@id\":\"https://docs.getaftercare.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.getaftercare.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Starter Kit\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Starter Kit\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/followups/create.md","siteName":"Starter Kit","nav":{"global":{"anchors":[{"anchor":"Discord","href":"https://discord.gg/Rn2yZ3He","icon":"discord"},{"anchor":"Slack","href":"https://join.slack.com/t/aftercareusers/shared_invite/zt-30ezqu0sy-0YybIITmOcx5BEpdR3mWCQ","icon":"slack"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"API Documentation","pages":[{"title":"Get Started","description":"Add AI to your surveys in minutes","icon":"square-terminal","href":"/api-reference/introduction"}]},{"group":"AI Followup Generation","pages":[{"title":"Create AI Followup Question","openapi":"POST /api/v1/followups","href":"/api-reference/followups/create"}]},{"group":"AI Data Quality Evaluation","pages":[{"title":"Evaluate Data Quality","openapi":"POST /api/v1/data-quality","description":"Evaluates the quality of survey responses for potential issues","href":"/api-reference/data-quality/evaluate"},{"title":"Evaluate Data Quality Batch","openapi":"POST /api/v1/data-quality/batch","href":"/api-reference/data-quality/batch"},{"title":"Get Data Quality Batch Job Status","openapi":"GET /api/v1/data-quality/batch/{batchJobId}","href":"/api-reference/data-quality/get"}]},{"group":"AI Coding","pages":[{"title":"Create AI Coding Batch Job","openapi":"POST /api/v1/coding","href":"/api-reference/coding/create"},{"title":"Get AI Coding Batch Job Results","openapi":"GET /api/v1/coding/{batchJobId}","href":"/api-reference/coding/get"},{"title":"Create AI Brand Coding Job","openapi":"POST /api/v1/brand-coding","href":"/api-reference/brand-coding/create"}]}]}]},"basePath":"","title":"Create AI Followup Question - Starter Kit","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BMn8tSe3.js","snippetPresets-Dl5ZrD9W.js","utils-CddEzDcs.js","style-to-object-BY3JEAdk.js","utils-Dym31Pnf.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-ZiqR8hPK.js","conditional-requirements-CFM0id0Q.js","cloneDeep-D3fPbylz.js","_Uint8Array-BcNtDki0.js","isObject-FP1Yky1u.js","ApiExamples-4Sf3CFhl.js","usePlaygroundInputsStore-Ck91l6q0.js","shallow-DapBSR9G.js","isEqual-Clu_sGzx.js","CodeSnippets-DAVHdSX2.js","CodeSnippet-Be6AcO_D.js","use-playground-group-access-CteWws2O.js","Page-_aL_PM_2.js","api-description-markdown-BPoPkVJQ.js","DynamicMarkdown-QJ7LkRm3.js","SectionHeading-DyxPTJti.js","MethodPill-CGjK-dNY.js","getPastedJson-C4YIGTOJ.js","Check2Icon-B7COpIZE.js","axios-CsQoIw0U.js","Markdown-Bquzb4Gw.js","AssistantPageLink-wSgGy_i5.js","dist-Bg48sGSz.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}