Website Analysis for Prompt Generation¶
Save time crafting the perfect system prompt. 4Geeks AI Agents can analyze your business website and automatically generate a tailored system prompt that captures your brand voice, services, and key information.
Overview¶
The website analysis feature:
- Scrapes your website content (homepage, about, services pages)
- Analyzes the content using Groq AI’s compound model
- Extracts key business information (services, tone, FAQs)
- Generates a customized system prompt for your agent
How It Works¶
During Agent Creation¶
- Open the Agent Studio
- At the Prompt step, enter your website URL
- Click Analyze Website
- Wait for analysis (typically 30-60 seconds)
- Review the generated prompt
- Edit as needed
- Click Continue
Analysis Process¶
graph LR
A[Website URL] --> B[Scrape Content]
B --> C[Groq AI Analysis]
C --> D[Extract Business Info]
D --> E[Generate System Prompt] - Scraping — The system visits your URL and extracts text content
- Web Search — Groq’s compound model searches for additional context
- Analysis — AI analyzes the content to understand:
- Business name and description
- Products and services offered
- Target audience
- Brand voice and tone
- Common questions and answers
- Contact information and hours
- Generation — A system prompt is crafted incorporating all findings
What Gets Analyzed¶
The system examines:
| Element | Information Extracted |
|---|---|
| Homepage | Business overview, value proposition |
| About Page | Company history, mission, team |
| Services/Products | Offerings, pricing, features |
| FAQ Page | Common questions and answers |
| Contact Page | Phone, email, hours, location |
| Blog/News | Recent updates, industry focus |
Generated Prompt Structure¶
The generated system prompt includes:
Business Context¶
You are an AI assistant for [Business Name], a [industry] company
that specializes in [services/products]. The company serves
[target audience] in [location/market].
Knowledge Base¶
Key information about the business:
- Services: [list of services]
- Products: [list of products]
- Pricing: [pricing information if available]
- Hours: [business hours]
- Location: [address/area]
- Contact: [phone, email]
Tone and Style¶
Communication style: [professional/casual/friendly/formal]
Brand voice characteristics: [extracted from website content]
Common Scenarios¶
Frequently asked questions and recommended responses:
- Q: [common question]
A: [suggested answer based on website content]
Customizing the Generated Prompt¶
After generation, you can:
Edit Directly¶
- Review the generated prompt
- Click Edit to modify any section
- Add missing information
- Remove irrelevant content
- Adjust the tone or style
Add Specific Instructions¶
Add sections for:
- Call handling — How to handle specific call scenarios
- Escalation rules — When to transfer to a human
- Booking procedures — How to schedule appointments
- Product recommendations — How to suggest products
Combine with Templates¶
Merge the generated prompt with pre-built agent templates:
- Generate from website
- Select an agent type template (Sales, Support, etc.)
- Combine the website context with template behavior
Technology Stack¶
| Component | Technology | Purpose |
|---|---|---|
| Web Scraping | Custom scraper | Extract website content |
| AI Analysis | Groq Compound Model | Analyze and understand content |
| Web Search | Groq Web Search | Find additional business context |
| Code Interpreter | Groq Code Interpreter | Process and structure data |
| Prompt Generation | Groq LLM | Generate the final system prompt |
Tips for Best Results¶
Website Preparation¶
- Ensure your website is accessible — No login walls or CAPTCHAs
- Keep content current — Outdated info produces outdated prompts
- Include key pages — About, Services, FAQ, Contact
- Use clear language — Avoid jargon the AI might misinterpret
URL Selection¶
| URL Type | Best For |
|---|---|
| Homepage | General overview, good starting point |
| About Page | Company background and mission |
| Services Page | Detailed service descriptions |
| Full Domain | Comprehensive analysis (takes longer) |
After Generation¶
- Review thoroughly — AI may miss nuances or make assumptions
- Add missing info — Include details not on the website
- Test in playground — Verify the agent behaves correctly
- Iterate — Refine the prompt based on test results
Limitations¶
| Limitation | Description |
|---|---|
| JavaScript-heavy sites | May not scrape correctly if content is dynamically loaded |
| Login-required content | Cannot access pages behind authentication |
| Very large sites | Analysis is limited to key pages |
| Non-English sites | Works best with English content; other languages supported but may be less accurate |
| Rate limiting | Some websites may block scraping |
Troubleshooting¶
Analysis fails¶
- Check the URL is correct and accessible
- Ensure the website doesn’t require login
- Try a different page on the same site
- Wait and retry if the site is rate-limiting
Generated prompt is inaccurate¶
- The website content may be outdated — update the site and re-analyze
- The site may not have enough content — add more descriptive pages
- Edit the prompt manually to correct inaccuracies
- Try analyzing a different page
Generated prompt is too generic¶
- Include more specific pages in the URL
- Add detailed service/product descriptions to your website
- Manually add specific instructions after generation
- Combine with a pre-built agent template for more structure
What’s Next¶
- Knowledge Base — Add documents for deeper knowledge
- Voice AI — Set up voice agents with the generated prompt
AĂşn con dudas? Pregunta en Discord o explore tutoriales