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 incluir cualquiera de los siguientes elementos:

  • 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. Se hace referencia a las herramientas con el formulario ${TOOL: tool_name}.
  • Instrucción para enrutar al usuario a un flujo de Dialogflow CX. Para hacer referencia a los flujos, se usa 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}.