Instrucciones

Las instrucciones del agente definen el proceso que se debe seguir. para lograr el objetivo del agente.

Cada paso contiene una instrucción en lenguaje natural que puede contener cualquiera de los siguientes:

  • Instrucción básica que el LLM puede comprender.
  • Una instrucción para dirigir al usuario a otro agente. Se hace referencia a los agentes a través del formulario ${AGENT: agent_name}.
  • Instrucción para usar una herramienta específica. Para hacer referencia a las herramientas mediante el formulario, haz lo siguiente: ${TOOL: tool_name}.
  • Instrucción para enrutar al usuario a un flujo de Dialogflow CX. Se hace referencia a los flujos mediante el formulario ${FLOW: flow_name}.

La descripción de cada paso comienza con -, y puedes definir subinstrucciones con sangría.

Por ejemplo:

- 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}.