Hi everyone,
I’m working on a project where I want users to create flashcards based on previous AI responses using GPT actions in my Node.js (Next.js) backend. I was not sure if I can access to conversation history including ChatGPT responses.
Use Case:
-
User: Define Dog
-
ChatGPT: Dog = cute animal
-
User: Generate flashcards
-
ChatGPT:
[
{
"word": "dog",
"definition": "cute animal"
}
]
Requirements:
• Command: generate flashcards
• Backend: Node.js (Next.js)
• Key Challenges:
• How can I access the previous AI response when the user triggers the generate flashcards command?
I’d really appreciate any suggestions or code examples to help implement this. Thanks in advance for your insights!