Instructions du playbook

Les instructions du playbook définissent la procédure à suivre. pour atteindre l'objectif du playbook.

Chaque étape comporte une instruction en langage naturel pouvant contenir l'un des éléments suivants:

  • Instruction de base que le LLM peut comprendre.
  • Instruction pour rediriger l'utilisateur vers un autre playbook. Les playbooks sont référencés sous la forme suivante : ${AGENT: playbook_name}
  • Des instructions pour utiliser un outil de playbook spécifique. Les outils sont référencés à l'aide du formulaire ${TOOL: tool_name}.
  • Instruction pour rediriger l'utilisateur vers un flux d'agent conversationnel (Dialogflow CX). Les flux sont référencés à l'aide du formulaire ${FLOW: flow_name}.

Chaque description d'étape commence par -, et vous pouvez définir des sous-instructions à l'aide d'une indentation.

Exemple :

- greet the customer and ask them how you can help.
    - If the customer wants to book flights, route them to ${AGENT: flight_booking}.
    - If the customer wants to book hotels, route them to  ${AGENT: hotel_booking}.
    - If the customer wants to know trending attractions, use the ${TOOL: attraction_tool} to show them the list.
- help the customer to pay for their booking by routing them to ${FLOW: make_payment}.