Prepared to assist turbocharge your workflow? We’re excited to introduce the Jules API—a brand new approach to automate, combine, and innovate throughout all the software program growth lifecycle.
Jules API Constructing Blocks
The Jules API is constructed round a number of easy, highly effective ideas:
- Supply: That is your enter, like a GitHub repository. Simply ensure you’ve put in the Jules GitHub app first.
- Session: Consider this as kicking off a undertaking along with your asynchronous coding agent. It’s a steady block of labor, like a chat session, the place all of the magic occurs.
- Exercise: These are the person steps and occasions inside a session. From the agent producing a plan to you sending a message, each motion is an exercise.
Construct the Future: What Will You Create?
This is not nearly easy automation; it is about creating your individual “brokers” to deal with advanced duties. Think about constructing a customized bot that may…
- Repair Bugs from Slack: A consumer stories a bug in a Slack channel. Your bot picks it up, invokes the Jules API, and Jules will get to work. It analyzes the code, creates a repair, and runs assessments to ensure nothing breaks. The entire time, it retains you up to date proper within the authentic Slack thread. When it is executed, it creates a PR so that you can evaluate and merge.
- Automate Backlog Triage: Programmatically pull minor bugs or function requests out of your backlog and assign them on to Jules.
Able to Dive In? A 30-Second Quickstart
Let’s get this social gathering began. Fireplace up your terminal and provides this a whirl.
- Get your API key by going to https://jules.google.com/settings#api.
2. Discover the supply repo you wish to work with. First, see what GitHub repos you might have related.
curl 'https://jules.googleapis.com/v1alpha/sources'
-H 'X-Goog-Api-Key: YOUR_API_KEY'
Shell
3. Kick off a session. Now, let’s give Jules a activity. How about making a boba app?
curl 'https://jules.googleapis.com/v1alpha/classes'
-X POST
-H "Content material-Kind: utility/json"
-H 'X-Goog-Api-Key: YOUR_API_KEY'
-d '{
"immediate": "Create a boba app!",
"sourceContext": {
"supply": "sources/github/bobalover/boba",
"githubRepoContext": {
"startingBranch": "foremost"
}
},
"title": "Boba App"
}'
Shell
And there you might have it! That is how straightforward it may be to work with Jules programmatically. You will discover full documentation right here.
Attempt the Jules API right now
Once more, that is an early model of the Jules API and whereas we’ve so many plans in retailer for the place to take it subsequent, we’re most excited to see what you’ll construct with it!
So, keep tuned for extra and be a part of our Discord channel to inform us what you suppose and the place we must always take the API subsequent.







