regostar / eventique

AI Enhanced Event Planning
MIT License
1 stars 2 forks source link

Task : #53: Create an API end-point that is called on approval/Finalization which saves the event data to the system. #73

Closed SparshaPrakash closed 5 months ago

SparshaPrakash commented 6 months ago

Story: #53

regostar commented 5 months ago

API to Finalize - POST Json request body - must be parsed and we fetch the event json (which will be specified later) Create a new record in table - event using ORM Dj. Then respond with 200/ 201 success = true

regostar commented 5 months ago

POST /api/chatbot/approve-plan body:- event: {} -- similar to the prompt resp:- 201

regostar commented 5 months ago

{ "title": "Emily's 30th Birthday Bash", "purpose": "Celebrate Emily's 30th birthday", "start": null, "end": null, "tasks": [ { "title": "Venue selection", "description": "Research and book a venue that fits the guest count and budget.", "start": null, "end": null }, { "title": "Guest list creation", "description": "Create a guest list and send out invitations.", "start": null, "end": null }, { "title": "Food and beverage planning", "description": "Plan the menu, order food and drinks, and hire a caterer if necessary.", "start": null, "end": null }, { "title": "Decorations and theme", "description": "Choose a theme and purchase decorations to create the desired ambiance.", "start": null, "end": null }, { "title": "Entertainment", "description": "Book a DJ or band, and plan any other entertainment activities.", "start": null, "end": null }, { "title": "Photography and videography", "description": "Hire a photographer or videographer to capture the special moments.", "start": null, "end": null }, { "title": "Budgeting", "description": "Track expenses and ensure the event stays within budget.", "start": null, "end": null } ] }

regostar commented 5 months ago

@Govind-Asawa we need the prompt as well in the API req body { "title": "Emily's 30th Birthday Bash", "prompt": "Plan a birthday party for my friend Emily who is 30 years old now", "purpose": "Celebrate Emily's 30th birthday", "start": null, "end": null, "tasks": [ { "title": "Venue selection", "description": "Research and book a venue that fits the guest count and budget.", "start": null, "end": null }, { "title": "Guest list creation", "description": "Create a guest list and send out invitations.", "start": null, "end": null }, { "title": "Food and beverage planning", "description": "Plan the menu, order food and drinks, and hire a caterer if necessary.", "start": null, "end": null }, { "title": "Decorations and theme", "description": "Choose a theme and purchase decorations to create the desired ambiance.", "start": null, "end": null }, { "title": "Entertainment", "description": "Book a DJ or band, and plan any other entertainment activities.", "start": null, "end": null }, { "title": "Photography and videography", "description": "Hire a photographer or videographer to capture the special moments.", "start": null, "end": null }, { "title": "Budgeting", "description": "Track expenses and ensure the event stays within budget.", "start": null, "end": null } ] }