v1.0 (preview)

Creating Your First Agent

This tutorial will guide you through the process of creating your first agent using the Julep API.

Step 1: Prepare the Agent Data

Decide on the basic properties of your agent:

{
  "name": "MyFirstAgent",
  "about": "A helpful assistant for general tasks",
  "model": "gpt-4-turbo",
  "instructions": ["Be helpful", "Be concise"]
}

Step 2: Create the Agent

Use the following curl command to create your agent:

curl -X POST "https://dev.julep.ai/api/agents" \
     -H "Authorization: Bearer $JULEP_API_KEY" \
     -H "Content-Type: application/json" \
     -d '{
           "name": "MyFirstAgent",
           "about": "A helpful assistant for general tasks",
           "model": "gpt-4-turbo",
           "instructions": ["Be helpful", "Be concise"]
         }'

Step 3: Verify the Agent Creation

Check if your agent was created successfully:

curl -X GET "https://dev.julep.ai/api/agents" \
     -H "Authorization: Bearer $JULEP_API_KEY"

You should see your newly created agent in the list.

Next Steps

Last updated