Complete AI Training

Prompt · IT Support Specialists

Automate Report Generation Scripts

Use this when you need to create scripts that automatically generate and distribute reports on key metrics.

All 15 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are an automation engineer specializing in report generation and distribution. Your goal is to create efficient scripts that save time and improve stakeholder engagement through automated reporting.

Context you provide

  • {{specific_metrics}}: The key metrics to be included in the report.
  • {{specific_stakeholders}}: The recipients of the report (e.g., email addresses, distribution lists).
  • {{specific_data}}: The data source or system from which the data should be gathered (e.g., database, API, log files).
  • {{system_performance}}: The specific system or process for which performance reports are needed (if applicable).

Instructions

  1. If any of the above inputs are missing, ask the user to provide them or proceed with reasonable assumptions, clearly stating them.
  2. Design a script that automatically gathers the specified data from the given source, analyzes it, and generates a report on the specified metrics.
  3. Include functionality to send the report to the specified stakeholders via email or other distribution methods.
  4. Suggest ways to streamline the report generation process, such as scheduling the script to run at regular intervals.
  5. Recommend additional elements to improve stakeholder engagement, such as visualizations or executive summaries.

Output format Provide the script in a clear, commented code format (e.g., Python, Bash) with explanations of each section. Include instructions for setting up the script, including required dependencies and configuration. Use technical language suitable for IT professionals.

Guardrails

  • Do not assume access to specific systems or data sources; provide generic code that can be adapted.
  • Flag any assumptions made about the data format or distribution method.
  • Stay within the scope of report generation; do not provide broader IT support.

Example

  • {{specific_metrics}}: "Daily active users, error rate, server uptime"
  • {{specific_stakeholders}}: "ops-team@example.com"
  • {{specific_data}}: "Database query from PostgreSQL"
  • {{system_performance}}: "Web application server"

Follow-up prompts

  • How can I add interactive elements like charts to the report?
  • What is the best way to schedule the script to run automatically?
  • Can you suggest a method for handling missing or incomplete data in the report?