prashanth-criodo/SPARC
0
<<<<<<< HEAD
S.P.A.R.C - Smart Personalised Automation for Remarkable Campaigns
SPARC is an AI-powered marketing campaign content generator that helps create, manage, and distribute personalized content across multiple platforms.
๐ Features
- AI-Powered Content Generation: Leverages Azure OpenAI to create engaging content
- Persona Management: Create and manage detailed target audience personas
- Multi-Platform Distribution:
- Twitter integration for social media posting
- Email campaign management
- Campaign Analytics: Track performance metrics across platforms
- Impressions
- Click-through rates
- Conversions
- ROI tracking
- Content History: Maintain a record of all generated content with reusability options
๐ Getting Started
Prerequisites
- Python 3.8+
- Azure OpenAI API access
- Twitter Developer Account (for Twitter integration)
- SMTP server access (for email campaigns)
Installation
- Clone the repository:
git clone https://github.com/yourusername/sparc.git
cd sparc- Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # For Unix/macOS
venv\Scripts\activate # For Windows- Install dependencies:
pip install -r requirements.txt- Create a
.envfile in the root directory with your credentials:
AZURE_OPENAI_API_KEY=your_azure_openai_api_key
AZURE_OPENAI_ENDPOINT=your_azure_endpoint
TWITTER_API_KEY=your_twitter_api_key
TWITTER_API_SECRET=your_twitter_api_secret
TWITTER_ACCESS_TOKEN=your_twitter_access_token
TWITTER_ACCESS_TOKEN_SECRET=your_twitter_access_token_secret
EMAIL_SMTP_USER=your_email
EMAIL_SMTP_PASSWORD=your_email_passwordRunning the Application
streamlit run app.py๐ Usage
- Create Personas
- Navigate to "Create Persona"
- Fill in persona details
- Save persona for future use
- Generate Content
- Select target personas
- Define campaign goals
- Choose content type and tone
- Add relevant hashtags
- Generate AI-powered content
- Distribute Content
- Preview and post to Twitter
- Send email campaigns
- Track performance in analytics
- Analytics
- View performance metrics
- Track engagement across platforms
- Monitor ROI and conversions
๐ง Configuration
The application uses a config.yaml file for various settings:
azure_openai:
deployment_name: gpt-4
api_version: 2024-02-15-preview
email:
smtp_server: smtp.gmail.com
smtp_port: 587๐ Analytics Features
- Real-time performance tracking
- Platform-specific metrics
- Time-period filtering
- Visual trend analysis
- Detailed campaign reporting
๐ค Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Acknowledgments
- Azure OpenAI for AI capabilities
- Streamlit for the web interface
- Twitter API for social media integration
๐ Support
For support, email support@sparc.ai or open an issue in the repository.
๐ฎ Future Enhancements
- LinkedIn integration
- Advanced analytics with ML-powered insights
- Custom template management
- Automated scheduling
- A/B testing capabilities ======= --- title: SPARC emoji: ๐ colorFrom: red colorTo: pink sdk: streamlit sdkversion: 1.41.1 appfile: app.py pinned: false ---
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
>>>>>> 5f823d9413d6a211d8aa58dbbcbc2d0e7c10cf2d
