Prompt · Network Engineers
Network Automation Strategies
Use this when you want to automate repetitive network tasks like configuration, provisioning, or troubleshooting.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- 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
- Ask for missing context before proceeding.
- Provide examples of automation scripts (e.g., Python with Netmiko or Ansible) for the given device type.
- Outline strategies for automating provisioning of new services, including templates and validation steps.
- Explain how to enforce network policies through automation, ensuring compliance.
- Suggest approaches for automating troubleshooting tasks, such as log analysis or automated tests.
- 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?