Public
Like
openai-agents
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
A Val Town template for creating HTTP endpoints powered by the OpenAI Agents SDK.
-
Remix this val
-
Set the
OPENAI_API_KEYenvironment variable. Get your OpenAI API key here: https://platform.openai.com/api-keys -
Customize your agent: Edit the agent configuration in
main.ts. You can provide custominstructions, choose a different model, or add custom tools. -
Use your agent:
Send POST requests to your val endpoint:
curl -X POST https://openai-agents.val.run \ -H "Content-Type: application/json" \ -d '{"message": "Tell me about severe weather events"}'