princeton-ddss / survey-gpt

A survey agent built on ChatGPT
https://survey-gpt.netlify.app/
2 stars 1 forks source link

Add message saving #4

Closed cswaney closed 1 year ago

cswaney commented 1 year ago

Adds a button to submit survey responses to Fauna database via new serverless function saveMessages.

netlify[bot] commented 1 year ago

Deploy Preview for survey-gpt ready!

Name Link
Latest commit f2d26e31b1183dd84c3b170e9b13221d8681424d
Latest deploy log https://app.netlify.com/sites/survey-gpt/deploys/643ea3937c254c00086043c0
Deploy Preview https://deploy-preview-4--survey-gpt.netlify.app/
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

cswaney commented 1 year ago

It would be nice if the message history would be automatically submitted and closed once ChatGPT determines the survey is over. Maybe we can have ChatGPT return a special token/word to signify end-of-survey?

cswaney commented 1 year ago

There needs to be some additional feedback at the end of the survey. Maybe conditionally render a completion message that replaces the input field, e.g., Thank you for completing the survey. Your survey record is ${sessionId}.