We propose an original methodology for converting unstructured textual data into structured survey data through the use of chatbot technologies. Specifically, we employ ChatGPT application programming interface tools to associate a given short text – interpreted as a potential response – with the most probable question, selected from a predefined list, that could plausibly have elicited it. This list may correspond to items from a survey questionnaire. In addition, we instructed ChatGPT to identify an appropriate response option in line with the semantic content of the text. The input text may originate from (i) a post on the X platform (formerly Twitter) or (ii) an open-ended response within an actual survey questionnaire. In the former case, the method enables the construction of a structured survey dataset from social media messages; in the latter, it provides a means to assess the reliability of responses in an existing survey instrument. Our findings highlight the potential of chatbot-based methods to enhance the integration of textual and survey data, offering new opportunities for constructing timely indicators and for improving the assessment of response quality in existing survey instruments. More broadly, the approach contributes to advancing mixed-data methodologies in social research.

An artificial intelligence framework for transforming unstructured text into structured survey data / Manzi, G., Guo, Q.i., Russo, L., Granè, A.. - In: DECISION ANALYTICS JOURNAL. - ISSN 2772-6622. - 20:(2026). [10.1016/j.dajour.2026.100730]

An artificial intelligence framework for transforming unstructured text into structured survey data

Manzi Giancarlo
;
Russo Luca;
2026

Abstract

We propose an original methodology for converting unstructured textual data into structured survey data through the use of chatbot technologies. Specifically, we employ ChatGPT application programming interface tools to associate a given short text – interpreted as a potential response – with the most probable question, selected from a predefined list, that could plausibly have elicited it. This list may correspond to items from a survey questionnaire. In addition, we instructed ChatGPT to identify an appropriate response option in line with the semantic content of the text. The input text may originate from (i) a post on the X platform (formerly Twitter) or (ii) an open-ended response within an actual survey questionnaire. In the former case, the method enables the construction of a structured survey dataset from social media messages; in the latter, it provides a means to assess the reliability of responses in an existing survey instrument. Our findings highlight the potential of chatbot-based methods to enhance the integration of textual and survey data, offering new opportunities for constructing timely indicators and for improving the assessment of response quality in existing survey instruments. More broadly, the approach contributes to advancing mixed-data methodologies in social research.
2026
artificial intelligence; text analytics; social media data; response classification; survey analytics; structured surveys
01 Pubblicazione su rivista::01a Articolo in rivista
An artificial intelligence framework for transforming unstructured text into structured survey data / Manzi, G., Guo, Q.i., Russo, L., Granè, A.. - In: DECISION ANALYTICS JOURNAL. - ISSN 2772-6622. - 20:(2026). [10.1016/j.dajour.2026.100730]
File allegati a questo prodotto
File Dimensione Formato  
Manzi_ artificial-intelligence-framework_2026.pdf

accesso aperto

Tipologia: Versione editoriale (versione pubblicata con il layout dell'editore)
Licenza: Creative commons
Dimensione 3.05 MB
Formato Adobe PDF
3.05 MB Adobe PDF

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11573/1771865
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
social impact