Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Challenge: Automate Weekly Customer Success Report | Automating Customer Success Workflows
Python for Customer Success Managers
Abschnitt 3. Kapitel 5
single

single

bookChallenge: Automate Weekly Customer Success Report

Swipe um das Menü anzuzeigen

Automating weekly reporting is a transformative step for Customer Success teams. By reducing manual effort, you ensure consistency, save time, and free up resources to focus on meaningful customer interactions. Automated reports provide timely, actionable insights that help you proactively address customer needs, spot trends, and drive better outcomes for both your customers and your organization.

1234567891011121314151617181920212223242526272829303132
# Template for a week's customer activity data # List of customer IDs customers = ["C001", "C002", "C003", "C004", "C005"] # Dictionary mapping customer ID to number of logins this week logins = { "C001": 5, "C002": 0, "C003": 2, "C004": 7, "C005": 1 } # List of support tickets: each ticket is a dict with customer ID and status support_tickets = [ {"customer_id": "C001", "status": "open"}, {"customer_id": "C002", "status": "closed"}, {"customer_id": "C003", "status": "open"}, {"customer_id": "C003", "status": "closed"}, {"customer_id": "C004", "status": "closed"} ] # Dictionary mapping customer ID to survey response (True if responded, False if not) survey_responses = { "C001": True, "C002": False, "C003": True, "C004": True, "C005": False }
copy

To automate your weekly Customer Success report, start by structuring your output into three clear sections: a summary of key metrics, a list of customers who need follow-up, and tailored recommendations.

Begin by calculating totals—such as the sum of logins across all customers, the count of support tickets grouped by status, and the percentage of customers who responded to surveys. Next, identify customers who show signs of disengagement, such as low or zero logins or missing survey responses, and add them to a follow-up list. Finally, format your findings into a readable report that highlights both the metrics and recommended actions for your team. Automation ensures this process is repeatable and reliable each week.

Aufgabe

Swipe to start coding

Write a Python script that processes the provided customer activity data to generate a weekly Customer Success report. Your script must:

  • Calculate the total number of logins for all customers.
  • Count the number of support tickets by status ("open" and "closed").
  • Calculate the survey response rate as a percentage.
  • Identify customers who require follow-up because they had low activity (one or fewer logins) or did not respond to the survey.
  • Generate a formatted report string that includes: a summary of metrics, the follow-up list, and recommendations for the Customer Success team.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 3. Kapitel 5
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

some-alt