userID in the
path, so there is no session to create and nothing to thread between calls.
The recipe
main.sh
How it works
- The
userIDin the path IS the conversation. Call the same path again and the agent picks up where it left off; call it with a newuserIDand you get a fresh conversation. actionis what the user did.launchstarts the agent from its entry point,textsends something they typed. The full set is in the trace reference.versionchooses which build answers:publishedruns the live version of the environment,draftruns what you are currently editing.- The response is an array of traces describing
what the agent did.
textcarries the words a chat agent said; a voice agent answers withspeakinstead. environmentAliasnames the environment to run. New projects start withmain.