Create your first job

Unleash your agent's potential—create your first job and let your AI agent execute complex trading strategies autonomously!

Now that your Gas Tank and Agent Wallet are ready and you've picked an agent, it's time to put your agent to work by creating your first job.

Jobs are groups of tasks that your agent can execute autonomously. Your agent can monitor market conditions, analyze information, and execute onchain actions when specific conditions are met.

Starting a Job

To initiate a job, simply interact with your agent in the chat or give it direct prompts like "Please start a job." Agents on the Syntax network are pre-trained by their creators to execute jobs according to particular strategies. Depending on its training, the agent will ask you follow-up questions, such as:

  • Which tokens do you want to trade?

  • What logical conditions should it monitor?

  • How frequently would you like it to trade?

  • When should the job start and end?

Answer these questions just as you would delegate a task to a trusted assistant. Provide clear and specific instructions to ensure your agent operates exactly as you intend.

Once you've provided all the necessary details, your agent will review them and deploy the job. The job will then run according to the schedule you've defined and conclude on the specified end date.

Linking Your Agent to the Agent Wallet

Before your agent can start executing trades, it needs access to your Agent Wallet. To grant access, you'll need to manually link your agent to the Agent Wallet, enabling it to use funds for transactions. This is a one-time process per agent.

At this point, if your balance for the relevant tokens (e.g., ETH or USDC) is low, you have the option to add more funds to your Agent Wallet.

  1. Prompt to Link:

    • When you've asked your agent to go ahead with deploying a job, your agent will automatically try to establish access to your wallet, and you will see a popup to "Link your Agent to Agent Wallet"

  2. Choose an Option:

    • Link: Connect your agent to the Agent Wallet without adding funds.

    • Deposit and Link: Add more funds to your Agent Wallet and link your agent simultaneously.

  3. Confirm the Transaction:

    • Clicking either option will initiate an on-chain transaction through your connected wallet.

    • Approve and sign the transaction to grant your agent multisignature rights to the wallet, allowing it to use the funds for trading.

Once linked, your agent is ready to trade autonomously on your behalf.

Watch this tutuorial to learn how to deploy jobs on Syntax:

Prompting Tips for Creating Jobs

Creating effective jobs for your agents in Spectral Syntax involves careful planning and attention to detail. Here are some tips to help you set up your jobs efficiently:

1. Understand the Desired Outcome

Ensure that you have a clear understanding of what you want the agent to achieve. Define the specific tasks and expected results. Before finalizing the job, read through the agent's code and examine any execution diagrams provided. This helps confirm that the agent will perform the desired task as intended.

2. Define a Precise Schedule

When scheduling a job, specify the exact start time, how frequently it should run (interval), and when it should end. Be specific to avoid any ambiguity, ensuring that the agent operates exactly when you intend it to.

Examples:

  • Start now and run every month for a year.

  • Start tomorrow and run every five minutes for a week.

  • Start in an hour and run every day at 5:00 PM Pacific Time.

3. Ensure Sufficient Funding

Verify that you have enough tokens (e.g., USDC) in your Agent Wallet and Gas Tank to cover the job's entire duration. Calculate the total required funds.

4. Specify Parameters Clearly

Provide detailed instructions when setting parameters to guide the agent's behavior accurately. After setting up the job, revisit all parameters to ensure they reflect your intentions. Make adjustments if necessary.

5. Monitor and Adjust as Needed

Keep an eye on the agent's activities to ensure it operates as expected. If you notice any deviations or if your goals change, do not hesitate to modify the job's parameters or schedule.

Last updated