1. Articles
  2. Forum
  • Login
  • Register
  • Search
KI-Agenten
  • Everywhere
  • KI-Agenten
  • Articles
  • Pages
  • Forum
  • More Options
  1. Aivor - Artificial Intelligence (AI)
  2. Articles
  3. KI-Agenten

Data & prompts in AI: quality determines success

  • Daniel
  • March 28, 2025 at 10:44 AM
  • 259 Views
  • 0 Comments

Why clean data and good prompt engineering are crucial for AI success. How to use the GIGO principle, design better prompts and achieve valid results.

Contents [hideshow]
  1. 🛠 Quality of data determines success (GIGO principle)
    1. 🔹 Why is this important
    2. 🚀 Concrete implementation for your AI agent business
    3. ⛔️ Wrong vs. ✅ Right
    4. 📝 Practical example: High-quality lead generation
    5. 💡 Conclusion
  2. 🎨 Prompt engineering is an art
    1. 🔹 Why is this important?
    2. 🚀 3 decisive factors for effective prompt engineering
    3. ⛔️ Wrong vs. ✅ True
    4. 📝 Practical example: Iterative prompt engineering
    5. 💡 Conclusion
  3. ✅ Reliability is solved - through validation
    1. 🔹 Why is this important?
    2. 🚀 Concrete implementation for your AI agent business
    3. ⛔️ Incorrect vs. ✅ Correct
    4. 📝 Practical example: Validation in an AI-driven advertising campaign
    5. 💻 Code example for a validation (Python with Pydantic)
    6. 💡 Conclusion

🛠 Quality of data determines success (GIGO principle)

🔹 Why is this important

GIGO ("Garbage In, Garbage Out") means: Poor or inaccurate data leads to poor results. An AI agent is only as good as the data it works with. Even advanced algorithms provide incorrect or useless answers if the input data is inaccurate, incomplete or irrelevant.

The best AI does not help if it works with the wrong data. Results are even better if the data is not only available, but also directly linked to actions - for example through API integrations or database access.

🚀 Concrete implementation for your AI agent business

✅ Check and validate the data quality regularly:

  • Update and check the data sources used.
  • Make sure that your agents are not using outdated or unreliable information.

✅ Use reliable and validated data sources:

  • Obtain data from official APIs (e.g. Google API, LinkedIn API) instead of relying on unstructured websites.
  • Avoid insecure or low-quality databases.

✅ Link data sources with targeted actions:

  • Agents should not only collect information, but also use it in a targeted manner (e.g. automatic lead generation). automatic lead qualification and follow-ups).
  • Integration with CRM systems, marketing automation or financial tools improves efficiency.

⛔️ Wrong vs. ✅ Right

⛔️ Bad approach✅ Better approach
A lead research agent randomly searches websites.Lead data is pulled specifically from verified sources.
Results contain a lot of irrelevant or incorrect data.High-quality, filtered data improves lead quality.
Data is only collected, but not used further.Agents link data directly to actions.

📝 Practical example: High-quality lead generation

Scenario:
A company wants to gain new business contacts via AI-supported lead generation.

🔹 Wrong approach:
🛑 Agent randomly searches websites for company names and email addresses.
➡ Problems: Many incorrect or incomplete entries, duplicate data records and missing contact information.

🔹 Correct approach:
✅ Agent uses LinkedIn Sales Navigator API for targeted lead generation:
1️⃣ Collects high-quality company data (e.g. industry, size, decision-makers).
2️⃣ Automates contacting via LinkedIn or email with personalised messages.
3️⃣ Sends qualified leads directly to the CRM and flags follow-ups.

➡ Result: More efficient customer contact, better data quality and less time wasted.

💡 Conclusion

🔸 Use trusted data sources to avoid incorrect agent decisions.
🔸 Combine data with meaningful actions to create real added value.
🔸 Quality beats quantity - a small amount of high-quality data is better than masses of unstructured information.

🎨 Prompt engineering is an art

🔹 Why is this important?

The quality of the prompts directly determines the performance of an AI agent. A precise, well-formulated prompt can make the difference between a useless and a high-quality response. Good prompts are clear, structured and easy to understand. Through targeted prompt engineering, you can control how your agent thinks, structures and reacts.

🚀 3 decisive factors for effective prompt engineering

✅ 1. Use clear examples ("few-shot prompting") for better results

  • AI models learn faster through examples than through long explanations.
  • Provide one or two concrete examples that show the desired format and writing style.

🔹 Example:

Code
Create a blog post about AI in marketing.  
Example for the introduction:
"AI has revolutionised marketing by enabling companies to create personalised campaigns quickly.  
Example: [Your sample text here]"

✅ 2. the order of the instructions influences the result

  • The most important information should be at the end, as models give more weight to the information read last.
  • Structure your prompt so that the most important statement always comes last.

🔹 Example:

❌ Wrong (most important info too early):

Code
Create a blog article.  
The topic is content marketing.  
Use a casual tone.  
The target group is SMEs.  
The article must not exceed 500 words.

➡ Problem: The AI may prioritise the topic less than the writing style.

✅ Right (most important info at the end):

Code
Create a blog article on the topic of marketing.  
Explain the basics of content marketing in an easy-to-understand way.  
Write a maximum of 300 words.  
Use a relaxed, personal style.

➡ Advantage: The AI focuses first on the most important requirements (topic & structure) and then on the style.

✅ 3. Test and iterate constantly - good prompts come from optimisation

  • Test different prompt versions and analyse the results.
  • Adjust the instructions gradually to improve the output.
  • Optimise prompts based on customer feedback and test results.

⛔️ Wrong vs. ✅ True

⛔️ Bad Prompt✅ Better Prompt
"Write a blog article about AI.""Write a blog article about AI in marketing for small businesses. The article should be a maximum of 300 words and mention concrete benefits (time savings, cost reduction)."
No structure or format specification.Clear specifications on topic, target group and scope.
The AI itself decides on style and tone.A defined style ensures better reader appeal.

📝 Practical example: Iterative prompt engineering

Scenario:
You want to optimise an AI agent for a blog about AI marketing.

🔹 First version (general, unclear):

Code
Write a short paragraph about AI in marketing.

➡ Result: Vague, generic answer.

🔹 Second version (after first optimisation):

Code
Write a short introduction to AI in marketing for SMEs.  
The text may have a maximum of 4 sentences and should emphasise concrete benefits (e.g. time savings, cost reduction).

➡ Result: A little more specific, but still not perfect.

🔹 Third version (optimised according to customer feedback):

Code
Write a paragraph (maximum 4 sentences) about the benefits of AI marketing tools for small and medium-sized enterprises in e-commerce.  
Emphasise in particular cost reductions, time savings and higher customer satisfaction.  
Use a motivating, personal tone.

➡ Result: Now the output is clear, targeted and practical.

💡 Conclusion

🔸 Use clear examples to steer the AI in the right direction.
🔸 Place the most important instructions at the end to steer the model in a targeted manner.
🔸 Test, optimise and iterate - the best prompts are created through fine-tuning.

✅ Reliability is solved - through validation

🔹 Why is this important?

The biggest weakness of AI agents is not the AI itself, but incorrect inputs and outputs. An AI can only be as good as the data it processes. Instead of perfecting the AI itself, all inputs and actions should be validated to avoid incorrect or harmful decisions.

🚀 Concrete implementation for your AI agent business

✅ Prevent incorrect actions through strict validation:

  • Make sure that no incorrect API calls, incorrect data inputs or unauthorised actions are executed.
  • Validation stops processes when critical errors occur.

✅ Use standardised validation tools:

  • JSON Schema or Pydantic in Python for structured data validation.
  • User-defined validation mechanisms to block unexpected values or incorrect formats.

✅ Include multi-level validation:
1️⃣ Input validation: Checks all data before it is processed.
2️⃣ Processing validation: Ensures that only permitted actions are executed.
3️⃣ Result validation: Checks the final output before final processing.

⛔️ Incorrect vs. ✅ Correct

⛔️ Bad approach✅ Better approach
The agent processes data directly, without validation.Every data input is checked before it is processed.
Erroneous values lead to incorrect actions.Erroneous inputs are intercepted and reported.
False API calls can trigger expensive or unwanted actions.The agent can only execute validated, approved actions.

📝 Practical example: Validation in an AI-driven advertising campaign

Scenario:
An AI agent is to create automated marketing campaigns on Facebook.

🔹 Incorrect approach (without validation):
🛑 Agent places adverts without validation.
➡ Problem: Incorrect budget limits, incorrect target groups or incomplete content can lead to high costs or ad blocking.

🔹 Correct approach (with validation):
✅ The agent checks all parameters before starting:
1️⃣ Budget check: Ensure that the advertising budget is within the permitted values.
2️⃣ Target group check: Only predefined, permitted target groups can be selected.
3️⃣ Content check: Ad content must have a minimum length and must not contain any forbidden words.
4️⃣ Manual confirmation: If a parameter is missing or questionable, a check by an employee is requested.

💻 Code example for a validation (Python with Pydantic)

Python
from pydantic import BaseModel, Field, ValidationError

class CampaignSchema(BaseModel):
    budget: float = Field(..., ge=10, le=5000) # minimum budget: 10€, maximum budget: 5000€
    target_group: str = Field(..., regex="^(KMU|Enterprise)$") # Only KMU or Enterprise allowed
    content: str = Field(..., min_length=50) # Minimum length of the advert text

try:
    campaign = CampaignSchema(
        budget=1500,
        target_group="KMU",
        content="A convincing advertising text for your business."
    )
    print("✅ Campaign validated and ready for publication!")
except ValidationError as e:
    print(f"❌ Error: {e}")
Display More

➡ Result: Incorrect inputs lead to a direct error message before the campaign is started

💡 Conclusion

🔸 Reliability is not achieved through more perfect AI, but through strict validation of inputs and actions.
🔸 Use established validation tools such as JSON Schema or Pydantic to recognise incorrect data at an early stage.
🔸 Multi-stage checks (input, processing and result validation) prevent unwanted actions.

  • Previous Article Fundamentals of successful AI agents: SOPs, focus & clear roles
  • Next Article Tools & integrations: How to make AI agents really effective

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!

Register Yourself Login

Registration

Don’t have an account yet? Register yourself now and be a part of our community!

Register Yourself

Categories

  1. KI-Agenten 8
  2. AI News 16
  3. KI Inhalte erstellen 27
  4. KI Community 11
  5. Prompt Engineering 13
  6. Ticketsystem 8
  7. AI-Technologie 13
  8. Chatbots 11
  9. Reset Filter

Most popular articles

  • Cross-Disciplinary Collaboration in the AI Community: Case Studies and Success Stories

    3,517 Views
  • The 5 best AI robots for the home: a comprehensive overview

    3,082 Views
  • Stable Diffusion img2img Face Swap Guide with ReActor

    2,978 Views
  • Emotion Recognition in Chatbots: How AI Interprets Human Emotions

    2,199 Views
  • What are the four types of AI?

    2,189 Views

Artificial intelligence articles

Discover our collection of articles on artificial intelligence. Learn all about the latest developments and applications of AI technology. Our articles cover a variety of topics, from Machine Learning and Deep Learning to Robotics and Autonomous Systems. Read our articles to get a comprehensive overview of AI technology and stay up to date with the latest developments in this exciting field.


Show all AI articles

Magazine Tags

  • aivor
  • Apple
  • Automatisierung
  • autonomes Fahren
  • Börsengang
  • chatbots
  • ChatGPT
  • chatgpt
  • community
  • Content-Erstellung
  • Content-Marketing
  • Datenschutz
  • Effizienz
  • Elon Musk
  • Energieeffizienz
  • erneuerbare Energien
  • Ethik
  • forum
  • generative ki
  • Google
  • Google Gemini
  • Innovation
  • Internationale Beziehungen
  • ki
  • KI-Agenten
  • KI-Entwicklung
  • KI-Ethische Fragen
  • KI-Kunst
  • KI-Strategie
  • künstliche intelligenz
  • Midjourney
  • Minimalismus
  • Mobilität der Zukunft
  • Nachhaltige Energie
  • nachhaltige Entwicklung
  • Nachhaltigkeit
  • OpenAI
  • Partnerschaften
  • Photovoltaik
  • Politik
  • Produktivität
  • Prompt-Engineering
  • Sam Altman
  • Technologie
  • Tesla
  • ticketsystem
  • Zeitmanagement
  • zukunft
  • Zukunft der Arbeit
  • Zukunft der KI

Forum Tags

  • bodybuilding
  • Chat-GPT
  • chatbots
  • ChatGPT
  • chatgpt
  • Content-Generierung
  • DeepL
  • generative ki
  • Industrieroboter
  • künstliche intelligenz
  • Midjourney
  • mähroboter
  • OpenAI
  • programmierung
  • Prompts
  • roboterarme
  • robotik
  • sport
  • staubsaugerroboter
  1. Privacy Policy
  2. Contact
  3. Legal Notice
Powered by WoltLab Suite™