feat(feedback): Add content improvement feedback system

Frontend (frontend/app.js):

- Add textarea for improvement feedback

- Add submit button with loading state

- Handle API response and display improved content

Backend (backend/copywriter.py):

- Add improve_copy() method using Cohere API

- Integrate retry mechanism for API calls

Backend (backend/main.py):

- Add /improve-content POST endpoint

- Implement error handling and return improved content with metadata

Testing:

- Verified feedback submission flow

- Confirmed improved content generation

- Tested error scenarios and loading states
This commit is contained in:
Michael Ikehi
2025-04-18 04:39:06 +01:00
parent 6fd7213076
commit af8f99dea3
13 changed files with 550 additions and 167 deletions
+10 -8
View File
@@ -1,12 +1,9 @@
{
"brand_name": "Adriana James",
"tone": [
"professional",
"friendly",
"inspirational",
"empowering",
"excited",
"authoritative"
"empowering"
],
"voice_characteristics": [
"clear",
@@ -14,9 +11,13 @@
"empowering",
"confident",
"authentic",
"innovative",
"visionary",
"approachable"
"innovative"
],
"writing_patterns": [
"direct commands",
"personal pronouns",
"repetitive rhythms",
"empowering phrases"
],
"taboo_words": [
"cheap",
@@ -32,5 +33,6 @@
"problems": "challenges",
"services": "experiences",
"training": "transformation"
}
},
"brand_name": "Adriana James"
}