Trying to create a custom todo list app where I can upload an image of my whiteboard todo list & it imports the tasks into my app
Currently using OpenAI Vision to transcribe the image,
OpenAI’s responds in the format after transcribing the image:
Task Name: [TaskName1], Priority: High, Status: Incomplete
Task Name: [TaskName2], Priority: Med, Status: Incomplete
Task Name: [TaskName3], Priority: Med, Status: Incomplete
…
Just struggling with how to map this single string OpenAI response into their own “Task” data fields (TaskName, Priority, Status)
I assume you already have fields created in your DB to store. You can then directly store them in your DB and display them. But you can also store each data as a custom state if you don’t want to save the data and require a manual edit by the user to see if everything is perfect.
In case it didn’t help, a bit more context might help
Yes my issue is OpenAI returns a full single string that looks like this:
Task Name: [TaskName1], Priority: High, Status: Incomplete
Task Name: [TaskName2], Priority: Med, Status: Incomplete
Task Name: [TaskName3], Priority: Med, Status: Incomplete
How do I segment this single string into it’s correct “Task” data fields of TaskName, Priority & Status,
I’ve looked at using RegEx or executing Custom Javascript and backend workflows,
But i’m not sure if there’s a better way or plugin to simplify this.
Anymore context you need let me know!
system
Closed
December 18, 2024, 3:53pm
4
This topic was automatically closed after 70 days. New replies are no longer allowed.