Playbook 说明定义了实现 Playbook 目标应遵循的流程。
每个步骤都包含一条自然语言指令,其中可能包含以下任一内容:
- LLM 可以理解的基本指令。
- 用于将用户定向到其他 Playbook 的说明。
使用
${AGENT: playbook_name}
格式引用 Playbook。 - 有关使用特定手册工具的说明。
工具使用
${TOOL: tool_name}
格式进行引用。 用于将用户转到 Conversational Agents (Dialogflow CX) 流程的说明。 流程的引用采用
${FLOW: flow_name}
格式。
每个步骤说明都以 -
开头,您可以使用缩进来定义子说明。
例如:
- 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}.