Skip to content

Itsskell/improved-palm-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AI Business Insights Workflow

CI License: MIT

An intelligent Azure Logic Apps workflow that leverages OpenAI's GPT models to provide automated business insights and analysis from structured business data.

πŸš€ Features

  • Automated Business Analysis: Transform raw business data into actionable insights
  • Multiple Analysis Types:
    • Trend Analysis
    • Forecasting
    • Executive Summaries
    • Strategic Recommendations
  • AI-Powered: Utilizes GPT-4 for intelligent analysis
  • Serverless Architecture: Built on Azure Logic Apps for scalability
  • Secure by Design: API keys stored as secure parameters
  • REST API: Easy integration with existing systems

πŸ“ Project Structure

ai-business-insights-workflow/
β”‚
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ logic-app.json          # Exported Logic App definition
β”‚   β”œβ”€β”€ openai-prompt.txt       # Prompt engineering examples
β”‚   └── sample-data.json        # Example business data payload
β”‚
β”œβ”€β”€ docs/
β”‚   β”œβ”€β”€ architecture.md         # Detailed architecture documentation
β”‚   └── diagrams/
β”‚       └── workflow.mmd        # Mermaid workflow diagram
β”‚
β”œβ”€β”€ .github/
β”‚   └── workflows/
β”‚       └── ci.yml              # Continuous Integration workflow
β”‚
β”œβ”€β”€ README.md
└── LICENSE

πŸ› οΈ Prerequisites

  • Azure subscription with Logic Apps enabled
  • OpenAI API account and key
  • Basic understanding of REST APIs and JSON

πŸ“¦ Installation

1. Clone the Repository

git clone https://github.com/Itsskell/improved-palm-tree.git
cd improved-palm-tree

2. Deploy to Azure Logic Apps

  1. Open Azure Portal and navigate to Logic Apps
  2. Create a new Logic App or select an existing one
  3. Go to "Logic app code view"
  4. Copy the contents of src/logic-app.json
  5. Paste into the Logic App designer
  6. Save the Logic App

3. Configure Parameters

Set the following parameters in your Logic App:

🎯 Usage

Making a Request

Send a POST request to your Logic App HTTP trigger URL:

curl -X POST https://your-logic-app-url.com \
  -H "Content-Type: application/json" \
  -d '{
    "businessData": {
      "revenue": 125000,
      "expenses": 87500,
      "customers": 1250,
      "period": "Q3 2023"
    },
    "analysisType": "trend"
  }'

Example Response

{
  "success": true,
  "analysisType": "trend",
  "insights": "Based on Q3 2023 data showing $125,000 in revenue with $87,500 in expenses, your business demonstrates a healthy 30% profit margin...",
  "timestamp": "2023-10-15T10:30:00Z"
}

Supported Analysis Types

  • trend: Identifies patterns and trends in your business data
  • forecast: Predicts future performance based on historical data
  • summary: Provides executive-level overview of business performance
  • recommendation: Offers strategic recommendations for improvement

πŸ“Š Sample Data

Use the provided src/sample-data.json for testing:

{
  "businessData": {
    "revenue": 125000,
    "expenses": 87500,
    "customers": 1250,
    "period": "Q3 2023"
  },
  "analysisType": "trend"
}

πŸ“– Documentation

πŸ”’ Security

  • API keys are stored as secure parameters
  • All communication uses HTTPS
  • No sensitive data is logged
  • Follows Azure security best practices

πŸ§ͺ Testing

Run the CI workflow to validate the configuration:

# The CI workflow automatically runs on push and pull requests
# Manual trigger available in GitHub Actions

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ“§ Contact

Project Link: https://github.com/Itsskell/improved-palm-tree

πŸ™ Acknowledgments

  • Azure Logic Apps for serverless orchestration
  • OpenAI for GPT-4 AI capabilities
  • The open-source community

Note: This workflow requires an active OpenAI API subscription. API costs apply based on usage.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •