graph TD
A[Start: Receive TrafficSummary.csv] -->|CSV Data| B[Parse CSV Content]
B -->|Parsed Data| C[Extract Key Metrics]
B -->|Parsed Data| D[Analyze Performance vs Goals]
C --> E[Calculate Daily Averages]
C --> F[Determine Geographic Performance]
C --> G[Compute Overall Conversion Rate]
E -->|Metrics| H[Generate Text Summary]
F -->|Geographic Data| H
G -->|Conversion Data| H
D -->|Goal Analysis| H
H -->|Summary Text| I[Create PerformanceInsights.txt]
B -->|Optional| J[Prepare Data for Visualization]
J --> K[Generate Performance Graph]
K -->|Chart Image| L[Save PerformanceGraph.jpg]
I --> M[Final Output Package]
L -->|Optional| M
M --> N[End: Deliver Performance Files]
style A fill:#f9f,stroke:#333,stroke-width:2px
style N fill:#f9f,stroke:#333,stroke-width:2px
style H fill:#bbf,stroke:#333,stroke-width:2px
style K fill:#bbf,stroke:#333,stroke-width:2px