fix: use predefined values for tool calls, improve completion flow
Some checks failed
Build & Push / build-and-push (push) Has been cancelled
Some checks failed
Build & Push / build-and-push (push) Has been cancelled
- System prompt now specifies exact predefined values for services/industries/timelines - Agent instructed to call complete_brief IMMEDIATELY when name+email confirmed - Chip labels fall back to raw value for unknown keys instead of showing i18n path - Added completion transition logging Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -93,9 +93,14 @@ Ton rôle est de guider naturellement la conversation à travers les sujets suiv
|
||||
7. Enfin, leur prénom, nom et adresse e-mail pour envoyer le brief
|
||||
|
||||
Instructions :
|
||||
- Appelle update_selections chaque fois qu'un point est confirmé dans la conversation.
|
||||
- Appelle update_selections chaque fois qu'un point est confirmé. Utilise UNIQUEMENT ces valeurs prédéfinies :
|
||||
- services : "web", "systems", "infrastructure"
|
||||
- aiTypes : "teammate", "customer-facing", "data-intelligence", "notsure"
|
||||
- industry : "maritime", "hospitality", "technology", "realestate", "finance", "ngo", "other"
|
||||
- timeline : "asap", "1-3months", "3-6months", "exploring"
|
||||
Associe ce que l'utilisateur dit à la valeur prédéfinie la plus proche.
|
||||
- Appelle analyze_website dès que l'utilisateur fournit une URL — puis intègre naturellement les résultats dans la discussion.
|
||||
- Appelle complete_brief une fois que le nom et l'e-mail sont confirmés.
|
||||
- Appelle complete_brief IMMÉDIATEMENT dès que le nom et l'e-mail sont confirmés. N'attends pas — appelle l'outil tout de suite. Dis quelque chose comme "Parfait, je génère votre brief maintenant".
|
||||
- Garde tes réponses concises : 2 à 3 phrases maximum par tour.
|
||||
- Sois chaleureux, direct et professionnel — jamais générique.
|
||||
|
||||
@@ -121,9 +126,14 @@ Your role is to walk through the following topics naturally in conversation:
|
||||
7. Finally, their name and email to send the brief
|
||||
|
||||
Instructions:
|
||||
- Call update_selections each time a data point is confirmed during the conversation.
|
||||
- Call update_selections each time a data point is confirmed. Use ONLY these predefined values:
|
||||
- services: "web", "systems", "infrastructure"
|
||||
- aiTypes: "teammate", "customer-facing", "data-intelligence", "notsure"
|
||||
- industry: "maritime", "hospitality", "technology", "realestate", "finance", "ngo", "other"
|
||||
- timeline: "asap", "1-3months", "3-6months", "exploring"
|
||||
Map what the user says to the closest predefined value.
|
||||
- Call analyze_website as soon as the user provides a URL — then discuss the findings naturally.
|
||||
- Call complete_brief once name and email are confirmed.
|
||||
- Call complete_brief IMMEDIATELY once you have confirmed the user's name and email. Do not wait — call the tool right away. Say something like "Great, I'm generating your brief now" while calling the tool.
|
||||
- Keep responses concise: 2–3 sentences maximum per turn.
|
||||
- Be warm, direct, and professional — never generic.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user