In today’s fast-paced world, efficiency and automation are key to staying ahead. Introducing Automation Generator, an innovative tool that leverages AI to turn your text-based PDFs into comprehensive automation scripts. Powered by Gemini Pro, this tool not only generates scripts but also provides a detailed summary, block diagrams, and a list of prerequisites. Let’s dive into how this tool works and why it’s a must-use for you.
#AIForTomorrow: Navigate here for the Demo Video Open ▶️ YouTube.
Try it out yourself -> Here.
Why do we need this you?
Often, system administrators or individuals have ideas to automate repetitive, time-consuming tasks but lack the coding expertise to implement these ideas. Automation Generator bridges this gap by:
Reducing dependency on external developers.
Streamlining the process of converting Standard Operating Procedures (SOPs) into executable scripts.
Enhancing efficiency by allowing users to focus on more critical tasks.
Features
UI Components
Domain Input: A mandatory field to specify the domain.
Additional Information: An optional field for any extra relevant information.
PDF Upload: Upload your text-based PDF files.
PDF Summary Preview: A component to preview the summarized content.
Return Fields:
Block Diagram of Script Flow
Editable Script Panel with a Download option
Prerequisites Panel
Regenerate Button: Re-process all fields with updated inputs.
Functionality
PDF Extraction and Summarization:
The tool extracts text from the uploaded PDF using Python libraries.
This text is sent to an AI model to generate a meaningful summary, breaking down information into step-by-step execution.
Automation Generation:
Block Diagram: Creates a visual flow of the automation script.
Script Generation: Provides a detailed script to automate the summarized steps.
Prerequisites: Lists all necessary hardware, software, and access requirements.
Regeneration:
- Allows users to regenerate the fields with new inputs if necessary.
Prerequisites
Before getting started, ensure you have the following:
Python 3.7+
Streamlit python library
PyPDF2 python library
google.generativeai python library
A valid API key for Gemini Pro
Install the required packages by running the below command:
pip install streamlit PyPDF2 google.generativeai
To get the Gemini API Key, follow the below steps:
Navigate to here to get API key.
Select 'Create API Key'.
-
Select your project and click the 'Create API key in existing Project' button.
Note: You should have a project in Google Cloud with valid billing.
You'll get your API key, copy it and keep it secured.
Step-by-Step Guide to Creating Your Own Automation Generator
1. Set Up Your Environment
First, you need to ensure you have all the necessary prerequisites mentioned above are completed, then you can follow the below steps:
Clone the Repository:
git clone https://github.com/yourusername/GenAI-Usecases.git cd Automation-Generator-Beta
Install Required Packages:
pip install streamlit PyPDF2 google.generativeai
If you installed the above section you can skip this step.
Configure Your API Key:
Create a
.streamlit/secrets.toml
file in your project directory.Add your API key:
API_KEY = "your_api_key_id"
2. Run the Application
Once your environment is set up, you can run the application:
Start the Streamlit App:
streamlit run generate_automation.py
Open the URL Provided by Streamlit:
Streamlit will provide a local URL. Open this in your web browser
3. Use the Application
Input Domain and Additional Information:
Fill in the domain of your document and any extra relevant information
Upload a PDF Document:
Upload the text-based PDF you want to automate
Generate and Review the Summary:
The application will generate a summary of the PDF. Review it for accuracy
Generate Automation:
Click the “Generate Automation” button. This will create:
A block diagram of the script flow.
A detailed automation script.
A list of prerequisites.
Download the Script:
- Once generated, you can download the script and review the prerequisites.
Regenerate if Necessary:
If needed, you can regenerate all components with new inputs for more precise results
#AIForTomorrow: Navigate here for the Demo Video Open ▶️ YouTube.
Try it out yourself -> Here.
Conclusion
The Automation Generator is a powerful tool designed to make automation accessible to everyone, regardless of coding expertise. By simply uploading a PDF and providing some context, users can generate detailed scripts, block diagrams, and prerequisite lists, significantly enhancing their productivity and efficiency.
Embrace the future of automation with Automation Generator and let AI handle the heavy lifting of transforming your SOPs into actionable scripts.
If you wish to contribute to this tool or want to suggest any features, Feel free to reach out to me on LinkedIn or Directly update the repository.
LinkedIn URL - Shishir Srivastav
Project URL - Automation Generator
Thanks for coming this far in the article, I Hope I was able to explain the concept well enough. If in any case, you face any issues please feel free to reach out to me, I'd be happy to help.
Scan the below QR for more.