[HTML payload içeriği buraya]
33.2 C
Jakarta
Sunday, November 24, 2024

Construct Your First Agent with No-code Instruments Utilizing CrewAI


Not a coder? Nonetheless fascinated with constructing agentic techniques to automate enterprise processes? Don’t fear—You may simply construct your agentic techniques with no-code instruments through the use of both pre-built templates or Crew Studio, which can be found on the crewAI platform. On this weblog, we’ll discover thrilling, new, and lesser-known options of the CrewAI framework by constructing brokers with no-code instruments in only a few straightforward steps.

Building Your First Agent with No-Code Tools on crewAI

What’s CrewAI?

CrewAI = Crew (A gaggle of people that work collectively)+ Synthetic Intelligence

CrewAI is a well-liked multi-agent framework that’s quickly gaining a whole lot of traction on the earth of Generative AI. It’s designed to create and handle groups of autonomous AI brokers that work collaboratively to resolve advanced issues utilizing giant language fashions (LLMs). These brokers can tackle particular roles, work together with one another, make impartial selections, and full multi-step duties in coordination, very similar to human groups.

Construct Highly effective No-Code Brokers Immediately with CrewAI Templates

Now, let’s dive into the CrewAI platform. We’ll begin by exploring the ready-to-use templates out there for creating brokers. Under is a step-by-step information that can assist you create brokers utilizing these templates.

Step 1: Entry the CrewAI Platform

Head to the CrewAI platform by clicking right here and log in utilizing your e-mail ID. You may select the free plan and fill within the required particulars.

Access the CrewAI Platform

Step 2: Discover the Proper Template

There are numerous pre-built agentic templates out there on CrewAI. To discover all out there templates, choose Template from the left aspect of the display. This provides you with entry to a variety of ready-to-use templates inside the platform.

Find the Right Template

Listed below are some attention-grabbing agent templates you’ll discover:

  • Gross sales Supply Generator
  • Lead Scoring and Technique Crew
  • Job Change Monitoring Crew
  • Assembly Preparation Crew
  • Related Firm Finder

Let’s attempt utilizing the Related Firm Finder template.

Similar Company Finder

Step 3: Crew Deployment Information

Throughout the template, you’ll discover API necessities reminiscent of Serper API and OpenAPI keys. You’ll want these keys to deploy this agent. SeperAPI key helps in amassing data from internet whereas the openAPI key helps in accessing the OpenAI giant language fashions.

You may entry your free Serper API keys by signing in together with your e-mail ID right here: https://serper.dev/.

To learn to entry OpenAI API keys, go to our weblog on How one can Generate Your Personal OpenAI API Key and Add Credit?

On the backside of the template you’ll see two choices within the Related Firm Finder template: Deploy and Obtain.

Select Deploy to immediately deploy the agent for speedy use.

Crew Deployment Guide

When you click on Deploy, enter all of the required API keys and deploy the Crew template.

 API keys and deploy the Crew template

Notice: This course of might take a while to finish.

Your agent is now deployed and prepared for direct use based on your wants.

Step 4: Put up-Deployment

After deploying your mannequin, go to the Management UI to view all of the fashions deployed out of your account. Since we have now deployed a Firm Finder Agent, you can see this agent on the web page.

Management UI CrewAI

Step 5: Examine the output of the Deployed Agent

To test the output of the deployed agent, click on Handle Crew. Right here. you can see three sections:

1. Ready Execution: That is the part the place you enter your inputs. Click on on Set off Crew, and sort within the particulars requested, as per your chosen template.

For instance:

  • Goal Firm: Samsung
  • Our Product: Cellular Telephones

Then, choose Set off Crew.

Trigger Crew

2. Working: When you’ve specified the inputs, the agent begins processing on this part.

3. Completion: After the agent has processed the inputs, you’ll see the output mirrored right here. As soon as an enter seems within the accomplished part, you’ll be able to choose it to view particulars reminiscent of whole tokens, immediate tokens, and many others.

Completion - Crew AI

Right here, you will notice two choices: Output and Duties.

Click on Output to get the ultimate response.

Output

You may click on on Duties to see the record of duties accomplished by the agent.

Tasks - Crew AI

Congratulations! 🎉 You will have constructed your first agent. Be happy to discover different out there templates.

However wait—there’s extra! What if in case you have a novel want that these templates don’t totally deal with? Don’t fear. CrewAI studio affords options for that as effectively.

Construct a Customized AI Agent from Scratch utilizing Crew Studio

Notice: This platform remains to be within the beta part, so there could also be minor modifications within the interface.

You may create your personal custom-made agent with out code utilizing Crew Studio. Observe these steps to get began:

Step 1: Choose Crew Studio

Open Crew Studio from the navigation bar on the left aspect of the display.

You will note two choices:

  • Create LLM connections
  • Set Default LLM connection

Full each these steps earlier than constructing your agent. Let’s see how that’s finished within the subsequent 2 steps.

Step 1A: Create LLM Connections

Begin by deciding on Create LLM Connection in Crew Studio, or go on to LLM Connections from the left menu.

Fill within the required particulars:

  • Connection Title: Openai (You may select one other title as effectively)
  • Supplier: Choose openai because the supplier and select the mannequin as gpt-4o-mini (select your most well-liked LLM mannequin based mostly on the requirement)

Notice: You may also select a number of fashions if wanted.

  • Setting Variables: Set this as OPENAI_API_KEY

Guarantee your setting variables observe this format (e.g:  for Groq: GROQ_API_KEY).

Env-Var-Worth: Paste your API key right here.

Lastly, choose Add Connection to finish the setup.

Add Connection

Step 1B: Set Default LLM Connection

Return to crew sudio and choose Set Default LLM Connection in Crew Studio, or go to Settings to configure the default connection.

  • Enter all vital particulars, together with your group title in Group Settings
  • Set Agent LLM Settings: Choose the default language mannequin brokers will entry.
    • Default LLM Connection: OpenAI
    • Default Mannequin: GPT-4o mini

(Notice: The dropdown will show solely the fashions you added in LLM connections. On this instance, solely OpenAI choices can be found.)

  • Set Crew Studio LLM Settings: Choose the default mannequin for creating brokers.
    • Default Crew Studio LLM Connection: OpenAI
    • Default Crew Studio LLM Mannequin: GPT-4o mini
Crew AI - Set Default LLM Connection

As soon as the above steps are full, choose save default LLM settings.

Step 1C: Set Setting Variable

From the navigation bar go to setting variables and add related particulars

  • Key: OPENAI_API_KEY
  • Worth: Your openai API key
Set Environment Variable

Now, you’re all set! With these conditions configured, you’re prepared to begin constructing your personal agent with Crew studio.

Step 2: Create an Agent

Return to Crew Studio, the place you’ll be prompted to explain the kind of automation you wish to construct. Let’s use the immediate “You’re a technical weblog author. You write blogs between 1000 to 1500 phrases based mostly on the technical subject supplied.”

It’s possible you’ll get a few follow-up responses from crewAI, checking in regards to the particulars of your necessities. As soon as finished you will notice an choice to generate crew plan.

Create an Agent

Upon affirmation, you’ll obtain the plan in a tabular format that particulars every agent’s function, purpose, and backstory. It additionally features a activity breakdown with descriptions, anticipated outputs, and the brokers accountable.

If it is advisable make modifications, you’ll be able to edit every cell immediately by deciding on the edit choice.

Create an Agent

In case you’re glad with the whole crew plan created on your agent, choose Generate Crew.

Step 3: Deploy the Agent

You may view the whole activity circulation represented within the circulation diagram that’s generated. Click on Deploy Crew to deploy the agent.

 Deploy the Agent

Step 4: Examine the Output of the Agent

Head to Administration UI from the navigation bar and wait on your agent to be constructed. This may occasionally take a while. As soon as finished choose Handle Crew. Right here additionally you’ll discover sections labelled Ready Execution, Working, and Accomplished.

Click on Set off Crew and add the required inputs. It’s possible you’ll get totally different required inputs based mostly in your agent. You would have edited these inputs within the desk that was generated earlier within the course of.

Then, click on on Set off Crew to begin.

Trigger Crew

Your agent will now seem within the Working part, and as soon as full, the ultimate output shall be out there within the Accomplished part. You may then click on on Output to view the response.

Thrilling, isn’t it? You’ve simply created your personal custom-made agent!

Notice: This platform remains to be within the beta part, so there could also be minor modifications within the interface.

Conclusion

Creating AI brokers had by no means been this straightforward. With no-code instruments, anybody–no matter technical background can create their very own brokers. Whether or not utilizing pre-built templates or designing {custom} brokers from scratch, CrewAI can assist you construct your agent in only a few steps. So, take the leap, discover what you’ll be able to construct, and begin reworking concepts into good AI brokers right now!

If you’re fascinated with studying extra about AI Brokers, checkout our excusive Agentic AI Pioneer Program right now!

Regularly Requested Questions

Q1. Is CrewAI open supply?

A. Sure, CrewAI is an open-source framework designed to create and handle groups of AI brokers that collaborate to deal with advanced duties.

Q2. Can I create {custom} brokers on CrewAI if templates don’t meet my wants?

A. Sure, you’ll be able to create {custom} brokers in Crew Studio as a no-code device by describing the automation wanted, organising LLM connections, and configuring the agent’s duties.

Q3. What are the principle elements of CrewAI?

A. Key Parts of CrewAI are as follows:
1. Brokers: Every agent in CrewAI is assigned a particular function, purpose, and backstory, enabling them to function autonomously inside their outlined parameters.
2. Duties: Duties are discrete items of labor assigned to brokers. They embody an outline, anticipated output, and the agent accountable for execution.
3. Processes: Processes outline the workflow and coordination amongst brokers. They are often sequential, in a particular order, or hierarchical.
4. Crews: A crew is a set of brokers working collectively in the direction of a standard goal.
5. Instruments: Brokers can make the most of numerous instruments to reinforce their performance, reminiscent of internet search engines like google, information evaluation instruments, or custom-built utilities.
6. Reminiscence Administration: CrewAI incorporates superior reminiscence administration, together with short-term, long-term, entity, and contextual reminiscence.

This autumn. What are the necessities to deploy a CrewAI agent template?

A. Sure brokers require particular API keys, reminiscent of SerperAPI for internet search and OpenAI API key for LLMs to perform. Examine the template’s necessities earlier than deploying.

Q5. How does CrewAI handle communication between a number of brokers?

A. CrewAI is constructed to assist multi-agent techniques, permitting brokers to work together and coordinate duties in a structured workflow, making it very best for advanced, multi-step tasks.

Q6. What kinds of duties can CrewAI brokers carry out?

A. CrewAI brokers can deal with numerous duties reminiscent of content material advertising, gross sales prospect evaluation, lead scoring, buyer assist ticket insights, customized outreach, and extra.

Q7. How do I entry CrewAI’s supply code for personalisation?

A. CrewAI is open-source, and its code is on the market on GitHub, permitting customers to discover, customise, and contribute to the framework’s improvement.

As an Tutorial Designer at Analytics Vidhya, Diksha has expertise creating dynamic instructional content material on the newest applied sciences and traits in information science. With a knack for crafting partaking, cutting-edge content material, Diksha empowers learners to navigate and excel within the evolving tech panorama, making certain instructional excellence on this quickly advancing subject.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles