af8f99dea3
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
38 lines
680 B
JSON
38 lines
680 B
JSON
{
|
|
"tone": [
|
|
"professional",
|
|
"friendly",
|
|
"inspirational",
|
|
"empowering"
|
|
],
|
|
"voice_characteristics": [
|
|
"clear",
|
|
"direct",
|
|
"empowering",
|
|
"confident",
|
|
"authentic",
|
|
"innovative"
|
|
],
|
|
"writing_patterns": [
|
|
"direct commands",
|
|
"personal pronouns",
|
|
"repetitive rhythms",
|
|
"empowering phrases"
|
|
],
|
|
"taboo_words": [
|
|
"cheap",
|
|
"discount",
|
|
"bargain",
|
|
"failure",
|
|
"impossible",
|
|
"difficult"
|
|
],
|
|
"preferred_terms": {
|
|
"customers": "clients",
|
|
"products": "solutions",
|
|
"problems": "challenges",
|
|
"services": "experiences",
|
|
"training": "transformation"
|
|
},
|
|
"brand_name": "Adriana James"
|
|
} |