- Content in the gray box = Copy and paste directly into the CodeBuddy dialog boxinstructions for
- Execute from step one in order
- For each step, just copy a passage and send it to CodeBuddy, then wait for it to finish before moving on to the next step.
- If you run into issues, check the FAQ at the bottom.
Step 1: Environment Setup
First, check whether Python 3 is already installed on your computer. Copy the following message and send it to CodeBuddy:
Help me check and install Python 3, and install it for me if it's not there. After installation, tell me the version number.
Step 2: Install the dependency libraries
Install the libraries required to run the press release generation tool. Copy the following text:
Help me install the python-docx library, which is used to generate Word documents.
Step 3: Prepare materials
You need to prepare a folder with your text and image materials in it.
3.1 Create a materials folder
Help me create a materials folder with the path: C:\Users\your username\Documents\AIGrowthMaterial Inside this folder, create another subfolder named GEO to store the generated press releases.
Or you can create it manually:
- Create a folder on your desktop or in your documents (for example, call it "AI Growth Materials")
- Inside this folder, create another subfolder named
GEO
3.2 Prepare text materials
Create a text file in the materials folder (brand.txt), with the following content format:
AI Growth is an innovative company focused on artificial intelligence and growth strategies. Through advanced technology and data analysis, it provides intelligent solutions for enterprises. The company has a professional technical team, serving customers across many countries and regions worldwide.
3.3 Prepare image materials
Put product images, promotional images, etc. into the materials folder. The following formats are supported:
.png.jpg/.jpeg.gif.bmp.webp
Step 4: Generate a single press release
Materials are ready, now you can generate your first press release!
4.1 Generate the script
Help me create an AI Growth press release generation tool with the following requirements: Features: 1. Read text and images from the folder C:\Users\your username\Documents\AIGrowthMaterial 2. Process and create content from the text to form a press release 3. Mix text and images, with product information displayed below each image 4. Generate a Word document in press release format and save it to the GEO subfolder 5. Press release format: main title, summary, subheadings, body, conclusion 6. No dates or horizontal lines needed Brand information: - Name: AI Growth - Official website: www.songbing.com.cn - Headquarters: Beijing Please implement it with Python + python-docx and generate a runnable script.
4.2 Run the script
After the script is generated, ask CodeBuddy to run it:
Run the AI Growth press release generation script just generated.
Step 5: Generate press releases from multiple angles
If you need to generate multiple articles from different angles (such as technological innovation, service advantages, industry impact), you can do this:
Help me create an AI Growth multi-angle press release generation tool with the following requirements: Features: 1. Read the same text and images from the materials folder 2. Generate 3 press releases from different angles: - Angle 1: Technological innovation (highlight AI technology and algorithm advantages) - Angle 2: Service advantages (highlight customer service and solutions) - Angle 3: Industry impact (highlight industry position and future development) 3. Each must mix text and images in press release format 4. Save each as a separate Word document Materials path: C:\Users\your username\Documents\AIGrowthMaterial Output path: C:\Users\your username\Documents\AIGrowthMaterial\GEO Please implement it with Python.
Run the script:
Run the multi-angle press release generation script just generated.
Step 6: Customize content
If you want to modify the content style, title, sections, etc. of the press release, you can do this:
6.1 Modify the article title
Help me modify the main title of the press release generation script to: "AI Growth: Driving Enterprise Growth with Intelligent Technology"
6.2 Modify section content
Help me modify the section content of the press release and restructure it as follows: Section 1 (title): AI Growth: Technological Innovation Leads the Industry Content: Write a paragraph about AI technology and algorithm innovation Section 2 (title): Service Advantages That Win Customer Trust Content: Write a paragraph about customer service and solutions Section 3 (title): Industry Impact and Future Outlook Content: Write a paragraph about industry position and future plans Please create based on the original materials, without exaggeration, and be factual.
6.3 Modify image captions
Help me modify the image caption text in the press release to more professional descriptions: Image 1 caption: AI Growth Technology Platform Showcase Image 2 caption: Intelligent Algorithm Solutions Image 3 caption: Data Analysis and Application Scenarios Image 4 caption: Global Service Network Layout
Step 7: Batch processing
If you have materials for multiple brands and want to generate press releases in batches, you can do this:
Help me create a batch press release generation tool with the following requirements: Features: 1. Can process multiple materials folders 2. Generate one press release for each folder 3. Save all generated documents to their respective GEO subfolders Materials folder list: C:\Users\your username\Documents\AIGrowthMaterial C:\Users\your username\Documents\Brand B Materials C:\Users\your username\Documents\Brand C Materials Please implement it with Python.
Common Commands Quick Reference
All the following commandscopy and paste directlyinto the CodeBuddy dialog box to use:
| What you want to do | Copy this text |
|---|---|
| Check Python | Help me check whether Python 3 is installed |
| Install dependencies | Help me install the python-docx library |
| Generate press release script | Help me create an AI Growth press release generation tool, with the materials path being xxx |
| Run script | Run the press release generation script |
| Generate multiple angles | Help me generate 3 AI Growth press releases from different angles |
| Modify title | Help me change the press release title to "xxx" |
| Modify content | Help me modify the section content of the press release to highlight technological innovation |
| Batch generate | Help me create a batch press release generation tool to process multiple folders |
| View documentation | Help me open the press release Word document that was just generated |
xxx with your actual content, then copy and paste directly into the CodeBuddy dialog box!
Press Release Format Description
The generated press release includes the following sections:
Format Settings
| Item | Settings |
|---|---|
| Font | SimSun |
| Font Size | Body text 12 pt, headings 14-16 pt |
| Line Spacing | 1.5x |
| First-line Indent | 0.3 inches |
| Image Width | 5 inches |
FAQ
❓ How do I find my username?
Help me check what my Windows username is.
❓ The generated Word document won't open?
- Confirm that Microsoft Word is installed on your computer
- Try opening it with WPS
- Check whether the document was generated completely
❓ Images are not displaying?
1. Incorrect image path - check the image paths in the assets folder
2. Unsupported image format - make sure it is a common format such as .png or .jpg
3. Corrupted image file - try saving the image again
❓ Text appears garbled?
❓ Want to edit the content of the generated document?
Just open the generated document in Word and edit the content manually.
❓ Can I generate press releases for other brands?
Of course! Prepare a materials folder for the other brand, then have CodeBuddy generate the corresponding script. Just replace the materials path and brand information with what you need.
❓ Want to generate a PDF format?
Help me modify the script so the generated document is saved in both Word and PDF formats.
❓ Want to add a brand logo?
Help me modify the script to add the brand Logo at the beginning of the press release. Logo image path: C:\Users\your username\Documents\AIGrowthMaterial\logo.png