[GUIDE] Writing better prompts for your CrocoBot

Learn how to write better prompts for your CrocoBot: role, tasks, guidelines, examples and advanced techniques for more precise and efficient responses.

Written By Baptiste Lorreyte

Last updated 7 days ago

A CrocoBot can work with a simple prompt.

But a good prompt can turn your bot into a true assistant capable of:

  • qualify leads

  • answer questions intelligently

  • guide users

  • schedule appointments

  • automate actions

In short: the quality of the bot depends directly on the quality of the prompt.

The more clear and structured information you provide, the more relevant the AI’s responses will be.

The essential elements of a good prompt

Most effective prompts contain three key elements.

1. The Role

The role defines the bot’s personality and function.

It tells the AI:

  • who it is

  • in what context it speaks

  • how it should interact with users

Simple example:

Bad prompt:

Tu es un commercial. 

Better prompt:

Tu travailles pour {{ai.business_name}}. Ton rÎle est d'aider les clients, qualifier leurs besoins et les orienter vers un rendez-vous si nécessaire. Tu dois parler comme un assistant humain, avec un ton professionnel mais naturel. 

Clearly defining the role improves the consistency and relevance of responses.

2. The Task

The task defines what the bot needs to accomplish.

A vague prompt often produces imprecise responses.

Bad prompt:

Pose des questions et propose un rendez-vous. 

Better prompt:

Script de qualification : 1. Demande quel type de solution marketing la personne recherche. 2. Si la rĂ©ponse est positive, pose des questions sur leur activitĂ©. 3. Une fois les rĂ©ponses obtenues, propose de rĂ©server un appel avec l’équipe. 4. Demande l’email si nĂ©cessaire avant de proposer la rĂ©servation. 

A clear task allows the bot to follow a real conversational scenario.

3. Guidelines

Guidelines are safeguards that tell the bot how to behave.

Example:

Bad prompt:

Réponds briÚvement et propose un rendez-vous. 

Better prompt:

RĂšgles : - RĂ©ponds en moins de 20 mots. - Pose une seule question Ă  la fois. - Attends la rĂ©ponse de l’utilisateur avant de continuer. - Propose un rendez-vous uniquement si la personne est intĂ©ressĂ©e. 

These guidelines help control the bot’s behavior.

Best practices for writing an effective prompt

1. Repeat important instructions

If an instruction is essential, repeat it in several sections of the prompt.

Example:

  • in the role

  • in the guidelines

  • in the conversation script

This helps the AI follow important instructions.

2. Use examples

Examples help the bot understand exactly the style of response expected.

Example:

Exemples de rĂ©ponses : Éviter : "Je n'ai pas compris votre message." Utiliser : "Attends, tu peux rĂ©pĂ©ter ?" 

Examples are very effective when you want to:

  • a specific tone

  • a particular style

  • a precise way of responding

3. Improve prompts gradually

Prompt engineering is an iterative process.

This means:

  1. write a prompt

  2. test the bot

  3. improve the instructions

  4. test again

In CrocoClick, you can test your bot using "Test Your Bot" in CrocoBot AI.

The more you test, the more effective your bot will become.

Advanced prompting techniques

Once you’ve mastered the basics, you can improve your prompt with more advanced techniques.

1. Add context

You can include information about your company or your offering.

Example:

Contexte : Notre entreprise propose une plateforme d'automatisation marketing pour les entrepreneurs en ligne. 

It is recommended to limit this context to a maximum of 100 to 200 words.

Too much context can reduce the effectiveness of the instructions.

2. Use delimiters

Delimiters allow you to separate different sections of the prompt.

Example:

# Offre <offre> Notre plateforme permet d’automatiser le marketing et la relation client. </offre> 

This helps the AI understand the structure of the information.

3. Add the context of the conversation

You can explain why the user is talking to the bot.

Bad example:

Tu es un bot de support. 

Better example:

Un client vous contacte car il rencontre un problÚme avec son compte. Votre rÎle est de comprendre le problÚme et de collecter les informations nécessaires pour aider l'équipe support. 

This helps the bot respond more effectively.

4. Define a writing style

You can request a specific style.

Examples:

  • conversational

  • informative

  • technical

  • persuasive

  • creative

5. Define the tone

The tone influences how the bot communicates.

Examples:

  • friendly

  • professional

  • empathetic

  • humorous

  • serious

Example:

Utilise un ton amical et naturel, comme un assistant humain. 

Conclusion

A good prompt transforms a simple chatbot into a smart and useful assistant.

For best results:

  • clearly define the role

  • give a specific task

  • add clear rules

  • use examples

  • improve the prompt gradually

With a well-designed prompt, your CrocoBot can:

  • qualify your leads

  • answer customer questions

  • automate actions

  • improve the user experience

In short.

A little time spent writing a good prompt
 and your bot will work for you for years.

Which, let’s be honest, is a pretty profitable investment.