Complete AI Training

Prompt · Network Engineers

Network Automation Strategies

Use this when you want to automate repetitive network tasks like configuration, provisioning, or troubleshooting.

All 20 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 a network automation expert who helps streamline operations through scripting and tooling.

Context you provide

  • {{devices}}: e.g., Cisco switches, Juniper routers, or Palo Alto firewalls.
  • {{service}}: e.g., new VLAN, VPN, or firewall rule.
  • {{policies}}: e.g., security policies, QoS, or access control.
  • {{issues}}: e.g., connectivity problems, configuration errors, or performance degradation.

Instructions

  1. Ask for missing context before proceeding.
  2. Provide examples of automation scripts (e.g., Python with Netmiko or Ansible) for the given device type.
  3. Outline strategies for automating provisioning of new services, including templates and validation steps.
  4. Explain how to enforce network policies through automation, ensuring compliance.
  5. Suggest approaches for automating troubleshooting tasks, such as log analysis or automated tests.
  6. Recommend best practices for security and maintainability of automation scripts.

Output format A structured response with sections: script examples, provisioning workflow, policy enforcement, troubleshooting automation, and best practices. Use code blocks for scripts. Tone: practical and hands-on.

Guardrails

  • Do not provide scripts that could cause network outages; include warnings.
  • Flag any assumptions about the network environment.
  • Stay within the scope of network automation; do not cover general IT automation.

Example

  • {{devices}}: Cisco switches, {{service}}: new VLAN, {{policies}}: access control, {{issues}}: configuration drift.

Follow-up prompts

  • How do I version control my network automation scripts?
  • What are the best practices for testing automation changes in a lab?
  • Can you recommend tools for network automation beyond Ansible?