CrewAI Step-by-Step | Complete Course for Beginners

Ғылым және технология

This is a full step-by-step introductory tutorial to CrewAI. In it, you will learn how to create teams of autonomous agents and AI crews to make your work for you. In this clear explanation, in the form of a crash course, we'll unveil the secrets behind Crew AI and how it works, showing you how to start from scratch without using their CLI builder tools. By the end of this tutorial, you'll have crafted your own intelligent crew of AI agents, capable of independent thought and designed to perform complex tasks. You will be able to create your own crews of AI agents who may do your work for you.
----
Links
☎️ Get something like this for your company: link.alejandro-ao.com/consult...
Tutorial Resources
🔗 Blog post: alejandro-ao.com/crew-ai-cras...
Community
💬 Join the Discord Help Server: link.alejandro-ao.com/HrFKZn
❤️ Become a Patreon (thanks): link.alejandro-ao.com/patreon
🍺 Buy me a coffee... or a beer (thanks): link.alejandro-ao.com/YR8Fkw
✉️ Get the Newsletter: link.alejandro-ao.com/AIIguB
Timestamps
===
0:00 Introduction
1:49 What is CrewAI
3:16 What we will build
6:04 CrewAI Components
8:51 Project Setup
10:01 Create Tasks
17:48 Create Agents
23:53 Create Tools
34:37 How Agents Work
44:12 Create Your Crew
53:07 Note on Costs
55:17 Setup API Keys & LangSmith
56:55 Test with GPT-3
1:03:00 Test with GPT-4
1:06:31 Conclusion
What You Will Learn
===
- Fundamentals of Crew AI: Get a solid understanding of how Crew AI operates behind the scenes.
- Building Your Crew: Follow our detailed instructions to create your crew from the ground up, ensuring you grasp the mechanics involved.
- Design and Diagrams: Utilize our expertly prepared diagrams to visualize the process, making complex concepts easy to understand.
- Hands-On Experience: We'll guide you through designing your own autonomous agents, using real-world examples and practical coding sessions.
- Additional Resources: Access the written version of this tutorial in the video description, complete with text, diagrams, code snippets, and a link to the GitHub repository for an immersive learning experience.
Embark on your journey to mastering Crew AI and unlock the potential of autonomous agents in your applications. Whether you're a beginner or looking to expand your knowledge, this tutorial is your gateway to the future of intelligent systems.

Пікірлер: 183

  • @johnbarbuto5387
    @johnbarbuto53873 ай бұрын

    I'm a retired neurologist - very interested in all of this, but from an entirely different background (and era). I'm absolutely fascinated at how these processes are similar to neurobiology. Of course, as humans we are building AI to "think like humans" (which has its strengths and weaknesses). However, it is fascinating to watch this arena "evolve" in real time - developing function elements just as brains developed function elements over hundreds of millions of years. In this case, specifically, I'm fascinated by the "backstory" element. It is essentially programming a "way of thinking" that functions somewhat similar to how our own "personal stories" program our ways of thinking. Thank you. It is a fascinating time on this planet!

  • @leonardommarques

    @leonardommarques

    2 ай бұрын

    Thank you for the input. How about you make a 10min video with your thougs and comments on this?

  • @johnbarbuto5387

    @johnbarbuto5387

    2 ай бұрын

    @@markdkberry Indeed. We actually have lots of "coded programs". The old (and surprisingly naive) idea was that we were born with "tabula rasa" - the empty slate, no inherent programs. Antoine de St. Exupery wrote: "more wisdom is latent in things as they are than in all the words men use". Indeed, a lot of ideas about behavior are just stupid if you simply look around at the whole planet of living creatures providing commentary on the antecedents of behavior - to those willing to look. Indeed, pain behavior is highly complex. It has the ability to both turn up and turn down the perception of pain from a given source of pain (the nociceptor). Within adaptive reason, pain is turned down during sleep. (Not to say it can't wake us up, but it does tend to be less perceived when we sleep - thus allowing sleep, a necessary physiological time.) Pain behavior is a long story.

  • @jichaelmorgan3796

    @jichaelmorgan3796

    2 ай бұрын

    ​@johnbarbuto5387 Very interesting information, thanks. I've been imagining that advanced ai, with tools like this and "flow engineering" and architecture, will end up being like hybrid of human brain/mind organizational structures and organizational structures we have developed with people. Which will further develop in a distributed way, like an ai internet, or ai being deeply integrated with the internet. Seems like developers aren't up to speed with the workings of the human mind! They might consider studying more in neuro and psych.

  • @happyshadow

    @happyshadow

    Ай бұрын

    Yes I've thought a few times that with how complicated and intricate these systems become the more we could be faced with AI "mental health" issues when destructive processes go unnoticed 😅

  • @BrandonFoltz
    @BrandonFoltz3 ай бұрын

    Oh...my...goodness. I have been waiting for a walk-through of crewAI and not just people talking over code screens. This worked for me on the first try which is a miracle. Agents are the next big thing and I am grateful for the video and the time I spent learning this was well worth it!

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    Hey brandon! It's great to hear this. Yeah, I had seen many videos showing some code generated by CrewAI's GPT and i thought it was not really clear what was going on behind the scenes. For real projects, I would be using their CLI and their GPT to create the crews because it's more efficient, but it is super useful to know how the system is designed!

  • @BrandonFoltz

    @BrandonFoltz

    3 ай бұрын

    @@alejandro_ao Yep! Since the code is so modular, I have found it quick to do. Just copy, paste, edit, etc. I have also been using LLMs to create backstories, tasks, etc. Maybe a next step would be to create a simple UI on the main script...hint...hint. :) Keep up the great work as always!

  • @GerardoBarcia
    @GerardoBarcia3 ай бұрын

    You’re getting better over time! Thanks for sharing your knowledge!

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    thank you man! i appreciate it :)

  • @ModernCentrist
    @ModernCentrist3 ай бұрын

    I've been waiting for a video like this. Thank you!

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    great! i will be making a series about this actually

  • @andydataguy
    @andydataguy2 ай бұрын

    Bro this tutorial was amazing!! Thank you for breaking it down in such detail. I feel confident about using CrewAI in the wild. Trying to get a custom crew for content creation made by the end of this week. Let's gooooo!

  • @MissionWork-ts6ly
    @MissionWork-ts6lyАй бұрын

    What a delightful voice; I could listen to it all day long. Thank you for the course.

  • @Jaiken451
    @Jaiken4513 ай бұрын

    Heading over to Patreon this morning. Killer tutorials 🙏🏼🙌

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    awesome man, thanks!

  • @marektalpak4315
    @marektalpak43153 ай бұрын

    Thank you for the great vido! Very well presented. Looking forward to additional videos.

  • @mygicarskrsk4465
    @mygicarskrsk44653 ай бұрын

    thanks for taking time to create these amazing helpful videos!

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    i really enjoy it. and i have learned so much by making them and talking to the community here. you guys are awesome

  • @youngchrisyang
    @youngchrisyang3 ай бұрын

    Another great content bro! This is definitely more structural and abstract way to create a agent team :) Also thanks for the notes on costs, it's definitely a ROI question.

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    no worries mate. sure! i mean, usually, i would use their CLI and their GPT to set all this up. but i figured it was useful to see what was actually happening behind the scenes :)

  • @free_thinker4958
    @free_thinker49583 ай бұрын

    You're the man 💯👏 rarely high quality content.

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    I appreciate that! Will do!

  • @duponce
    @duponce3 ай бұрын

    Very good, sensational, congratulations. Without a doubt the best video I've seen so far!

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    this means a lot man, thanks :)

  • @TomVanSchoor
    @TomVanSchoor2 ай бұрын

    Awesome content Alejandro 👍 I love how you build it from scratch so that anyone can follow. You earned a subscribe and notify-all from me 😜

  • @alejandro_ao

    @alejandro_ao

    2 ай бұрын

    Hey Tom! Thanks, I appreciate it! i try to make all the videos as beginner-friendly as possible :) New tutorial coming up today!

  • @moejobe
    @moejobe3 ай бұрын

    Awesome Video! Thank you for putting this together~

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    it’s my pleasure!

  • @bodmaniko
    @bodmaniko3 ай бұрын

    Beautifully done, thank you !

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    thank YOU

  • @user-zt2dj4rl6d
    @user-zt2dj4rl6d3 ай бұрын

    An excellent tutorial, and the materials were also very well done. Looking forward to additional videos on: - crewAI memory (this is not that well documented in crewAI, but I'm intrigued by the possibilities) - crewAI hierarchical processes - crewAI and advanced uses of Langchain (e.g. reasonably sophisticated RAG)

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    i'm working on it! 🫡

  • @OwaisBinMushtaq
    @OwaisBinMushtaq3 ай бұрын

    Thank you Was waiting for Agents, Tools

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    let me know what you think of it!

  • @funmiemore194
    @funmiemore1943 ай бұрын

    Thank you for the detailed breakdown!!

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    hey Funmi! it's my pleasure :)

  • @ibikunleadekiitan9882
    @ibikunleadekiitan98823 ай бұрын

    Beautiful idea

  • @jordanz9580
    @jordanz95803 ай бұрын

    I wanna say the video is so good and easy to understand, I HAVE ZERO CODING background! im still able to follow !!!

  • @user-xj1bc8hk8o
    @user-xj1bc8hk8o3 ай бұрын

    Awesome, thank you!

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    No worries!

  • @samertallauze729
    @samertallauze7292 ай бұрын

    Thank you. Well presented :)

  • @alejandro_ao

    @alejandro_ao

    2 ай бұрын

    thanks!!

  • @AIdevel
    @AIdevel3 ай бұрын

    This video is particularly beneficial I have already begun to think about using crew AI to automate tasks in the HR department this video will help me a lot to achieve that once I wrap into a front end UI thanks Alejandro for making these tremendously helpful videos ❤❤

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    adding a GUI is an excellent idea

  • @wvagner284
    @wvagner2842 күн бұрын

    Thank you for sharing such a nice content! You've just got a new subscriver. Regards from Brazil!

  • @alejandro_ao

    @alejandro_ao

    2 күн бұрын

    hey there! Welcome aboard! i’m glad to hear you find it useful!!

  • @crepusculoooo
    @crepusculoooo3 ай бұрын

    thanks alejandro? gracias por tu contenido de alta calidad!

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    muchas gracias a ti! saludos!

  • @user-bb6hp8hn2f
    @user-bb6hp8hn2f3 ай бұрын

    crewAI is a good tool, but if you consider it from multiple perspectives, for example: 1. Self-awareness, such as: Who are you? What can you do? What's the date today? 2. MySQL database query, such as: how many data in the table? What is the highest temperature in 2024? etc. 3. Vector library (This may include some basic knowledge, and it is not necessary to query MySQL. Of course, self-awareness can also be included here to simplify things.) I think it's difficult to achieve the three aspects simultaneously, as they have different dimensions, which makes me excited. If you can publish a video on this, I believe it will be viewed by many people because it is very practical. Thank you. Wish you well.

  • @sr.modanez
    @sr.modanez2 ай бұрын

    parabéns, perfeito, traga novos usos para estudo, estou impressionado com isso, obrigado por ter nos mostrado.

  • @alejandro_ao

    @alejandro_ao

    2 ай бұрын

    muito obrigado !

  • @kaidone1
    @kaidone13 ай бұрын

    cant wait to test it out. a great next idea would be cost saving and calculation with ai

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    you have a section in the video that shows how to monitor exactly how much you are spending. i that what you meant?

  • @rvick3914
    @rvick39143 ай бұрын

    Very informative content Thahnks bro

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    My pleasure :)

  • @hectorprx
    @hectorprx3 ай бұрын

    Thanks, all the best

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    all the best to you too!

  • @jordanz9580
    @jordanz95803 ай бұрын

    Thanks!

  • @oberdansantos5802
    @oberdansantos58022 ай бұрын

    Embora seja muito conteúdo, ele foi bem articulado 🤖. Então, parabéns🍻 pela leveza da condução da apresentação do video.

  • @alejandro_ao

    @alejandro_ao

    2 ай бұрын

    muito obrigado! 🔥

  • @shadowfreaper8158
    @shadowfreaper81582 ай бұрын

    Bro you should use Gemini pro for your testing its just as powerful as gpt 3.5 but its free to use all you want it what I used in this video for testing . Hopfully in the future more large llm will be free to use. Ps - Thank you so much for this as a high school kid you made it so easy for me thank you

  • @trungtalks
    @trungtalks3 ай бұрын

    Thank you, hello from Vietnam

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    thanks man! hello from france!

  • @tomaszhenschke2427
    @tomaszhenschke24273 ай бұрын

    Great content! What is the tool you used for drawing the diagrams?

  • @Spydaw
    @Spydaw3 ай бұрын

    Can this be made to work with Ollama and local LLM's? Would it be possible to demo this please? Reason I ask is when I follow the above I get the following error: Agent stopped due to iteration limit or time limit

  • @armaanseth6186
    @armaanseth61863 ай бұрын

    Hi, I am adding the gemini model to the agents using the llm parameter, but the model does not begin executing, after showing " Entering new CrewAgentExecutor chain..." two times there is no further steps being taken after that. Can you help me resolve this issue?

  • @ralphanthony5198
    @ralphanthony51983 ай бұрын

    Hello, Alejandro! First of all, thanks for the great content you bring to our community of AI fans. /Question: How can I make this example work using an Azure OpenAI API Key along with its endpoint? Any help will be appreciated. Thanks!

  • @wg5920
    @wg59203 ай бұрын

    Amazing tutorial. It would be great if a new one can be done using Local Models. Besides the differences in capabilities of local LLM against Chat-GPT, the main issue is getting tools to work, which severely limits what you can do with local models

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    local models are coming up next week! and yeah, tools are the tricky part. that's what takes me the most time when preparing these tutorials

  • @mathavansg9227
    @mathavansg92273 ай бұрын

    bruh never fail to surprise us with the up to date content

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    and there is much more coming up! 😎

  • @hakikitosunpasa335
    @hakikitosunpasa3353 ай бұрын

    Amazing, simple, clean and well explained. Thanks! I got confused in one part though, do I need to give contexts for tasks considering the agent working order? Basically does it follow task order or agent order?

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    great, thanks! so since we are using a sequential process, it follows the task order. this means that the tasks will be executed one by one in the order that you specify them when you create your crew. there is, however, a possibility of creating a crew with a "manager" that decides by himself the order of the tasks and the agents to assign them to. this would be a "hierarchical" process. i will make a video about it soon!

  • @happyshadow
    @happyshadowАй бұрын

    Could a workflow be created that could interact with an OS X Audio software (for example logic or cubase) to carry out tasks? For example grouping audio files, dropping those files into the app, colour coding, sorting into folders and maybe even using the application to assess audio files to determine volume levels. I'm keen to speed up the mundane part of my work

  • @fozantalat4509
    @fozantalat4509Ай бұрын

    Hi Alejandro, Can you please tell me how I can evaluate my agents or is there any framework or tool like RAGAS for evaluating agents, also it would be helpful if you can make a video on that.

  • @softwareideology2033
    @softwareideology20333 ай бұрын

    Hi ! I impressed with your chat with MySQL solution Can you make a video about chat with api which has swagger docs ?

  • @biswanathbiswas5686
    @biswanathbiswas56863 ай бұрын

    Thanks for the great content, a quick clarification, can we use open-source LLM like Mistral, LLAMA 2, etc. instead of OPENAI also any alternative to EXA. This is to control the cost while testing.

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    absolutely. there is not a very flexible way to do it so far, but i will be making a video about more llms and other tools. in the meantime, you can do the following for mistral: OPENAI_API_KEY=your-mistral-api-key OPENAI_API_BASE=api.mistral.ai/v1 OPENAI_MODEL_NAME="mistral-small" more info here: docs.crewai.com/how-to/LLM-Connections/#configuration-examples

  • @stephaneleroi8506
    @stephaneleroi8506Ай бұрын

    Thank you very much for the video. Can you tell me for information what is the code assistant you are using ? Thx a lot

  • @alejandro_ao

    @alejandro_ao

    Ай бұрын

    that' would be github copilot, really recommend

  • @johnbarbuto5387
    @johnbarbuto53873 ай бұрын

    Overall, a fabulous, clear, detailed examination of CrewAI use with agents. Inclusion of cost issues at the end was very, very helpful for real-world analysis. Now here is a final question. I have near-zero knowledge of programming Python, use of GitHub, and programming CrewAI. I'm reasonably smart but this is not my area of expertise. Presume I wanted to hire you to do a task similar to what you did here. Ballpark, how much would that cost? Or, how would I correctly ask someone about programmer costs for this kind of function? (I'm building a neuroscience-and-theater based educational tool with a colleague and this kind of research could be useful to us.)

  • @jjclark968
    @jjclark9683 ай бұрын

    So the tasks class could be consider the "process"?

  • @Lucromick13
    @Lucromick133 ай бұрын

    You have a nice voice Alejandro

  • @StrangebutTrueStudios
    @StrangebutTrueStudios3 ай бұрын

    Next, I'd like to see something similar using Llama 8b API, or Groq API? Not sure how to change the code to get that functional and working tbh. But I'd like to see how it works. Any idea on how I can start experimenting with it. I get lost where you create the tools because you are using Exa, if that makes sense. I know you said you'll be looking at different Llm's below. Keep up the great work, very comfortable following along with you. Thank you so much!!

  • @joacosolbes9283
    @joacosolbes92832 ай бұрын

    Hello Alejandro, please implement this OS-World, this can be the solution for a lot of use cases in which agents have to work with the compute OS-WORLD

  • @morespinach9832
    @morespinach9832Ай бұрын

    How do you host this in production. No data can be sent externally. CrewAI is a non starter in enterprises as aSaaS only model. Any other recommendations

  • @kexuncsu
    @kexuncsu2 ай бұрын

    thanks for sharing. could you share the "how agents work" page?

  • @Amrscanners
    @Amrscanners2 ай бұрын

    May I know what llm operating these agent. Can use differnt LLM&VLM?

  • @TomVanSchoor

    @TomVanSchoor

    2 ай бұрын

    You can pass in the LLM you want to use in the Agent() constructor, so you could use a different model based on the Agent requirements. Even local models are possible to be used as long as they are able to handle functions (there are quite a few that support functions) The default LLM that is being used is set up in the Agent source code as: llm: Any = Field( default_factory=lambda: ChatOpenAI( model=os.environ.get("OPENAI_MODEL_NAME", "gpt-4") ), description="Language model that will run the agent.", ) So the default is GPT-4 and you can change that by setting a variable in your .env OPENAI_MODEL_NAME=gpt-4o (or any other model)

  • @shingenma
    @shingenma3 ай бұрын

    Very well done introduction, as always. Is it better to use this or LangGraph? I'm curious to know if you have an opinion about the best framework for working with agents.

  • @TomVanSchoor

    @TomVanSchoor

    2 ай бұрын

    It should be used in conjunction with LangGraph, together they are an amazing ecosystem where you can use LangGraph as the control flow between different Agent Crews. And they are completely compatible since under the hood they are all LangChain Agents. 👍

  • @shashankgupta3549
    @shashankgupta35492 ай бұрын

    Nice Tutorial, One question - how to share the output of 1 task with another task, is it possible to share the context? if yes then how?

  • @muhammedaslama9908
    @muhammedaslama990817 күн бұрын

    Which software/website used to create that diagrams

  • @chibuzoemelike6403
    @chibuzoemelike64033 ай бұрын

    This is so good thank you so much for this course. Can crewai be used to create a chatbot where it's conversational? Which has a memory like lagchain?

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    absolutely! i'm working on a video about this ;)

  • @pauledam2174
    @pauledam2174Ай бұрын

    can anyone tell me where MeetingPrepTasks is defined in the github repo?

  • @AnkitKapur
    @AnkitKapur2 ай бұрын

    🎉 blog post looks amazing, what software did you use for it?

  • @alejandro_ao

    @alejandro_ao

    2 ай бұрын

    hey there, i use Hugo (Go-based static website generator) for the static website and a theme called Blowfish. i love the set up. i might make a video about it, even though it is not very AI

  • @richardchinnis
    @richardchinnis3 ай бұрын

    Have I missed a step? ERROR: Cannot install -r requirements.txt (line 1) and python-dotenv==1.0.1 because these package versions have conflicting dependencies. The conflict is caused by: The user requested python-dotenv==1.0.1 crewai 0.22.5 depends on python-dotenv==1.0.0

  • @user-tq4yh9ol8o
    @user-tq4yh9ol8o3 ай бұрын

    What difference did you feel between Crewai and Langgraph? When would you use each one?

  • @jim02377
    @jim023773 ай бұрын

    Is it possible to have an orchestration layer that call different crews that solve specific tasks and pass back results?If so can you do a video about it in the future?

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    hey Jim! so good to hear from you! this would be so awesome, and it is not super hard to build. all you would need is a crew that creates and tests crews based on a user's input. i will try to make a video about that, maybe even with a GUI

  • @jasonsalgado4917
    @jasonsalgado49172 ай бұрын

    This is all nice for a single crew. But what if you want to switch between multiple crews? What if I have two different crews in the AI needs to decide which task is most appropriate for which crew

  • @alejandro_ao

    @alejandro_ao

    2 ай бұрын

    you would probably need to plug in each crew to a tool and then make an agent choose between those two tools. that's where i would start, at least

  • @NiklasOtto
    @NiklasOtto3 ай бұрын

    Hello, First of all, thank you for your video! I am getting repeated errors while using the search tools. I think it is related to EXA API: "I encountered an error while trying to use the tool. This was the error: eval() arg 1 must be a string, bytes or code object. Tool get_contents accepts these inputs: get_contents(ids: str) - Get the contents of a webpage. The ids must be passed in as a list, a list of ids returned from `search`." Could you help me please?

  • @drhot69

    @drhot69

    7 күн бұрын

    def get_contents(ids: str): should actually be def get_contents(ids: list): Note that the docstring even says 'The ids must be passed in as a list, ' Also the line 'ids = eval(ids)' should be deleted.

  • @sdmj45
    @sdmj453 ай бұрын

    What's the plugin do you use to auto complete your code in vs studio?

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    that's github copilot

  • @sdmj45

    @sdmj45

    3 ай бұрын

    @@alejandro_ao thanks, is it free for using?

  • @mpazaryna
    @mpazaryna2 ай бұрын

    Thanks for the work. I reran this and modified it to use gpt4-o, and on review (I used AgentOps Dashboard), the cost was $3.24. That seems to be very high. Are you seeing a similar charge? Thanks

  • @alejandro_ao

    @alejandro_ao

    2 ай бұрын

    hey there, yeah that seems a bit high, especially for gpt-4o, which is supposed to be cheaper than gpt-4. are you sure that the crew is actually calling this model?

  • @mpazaryna

    @mpazaryna

    2 ай бұрын

    @@alejandro_ao Yes. If you're interested, I can send you the run results from the AgentOps Dashboard. It shows 118k prompt tokens and 14k completion tokens.

  • @bahamaej
    @bahamaej3 ай бұрын

    Awesome tutorial and I'm getting ready to explore crews myself. Sorry if I missed but can you give the total cost for the Crews using 3.5Turbo vs. GPT4? I think 3.5T was 4 euros, but I didn't catch the total cost for the GPT4 crew

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    hey there, actually after tweaking a little bit the crew (especially after removing the tools from some agents who didn’t really need them), the final cost with GPT-4 was less than 1 USD. GPT-3 might be slightly cheaper but not too much because it tends to make more requests (it makes more mistakes and tries to correct itself time after time). also in general, for agentic behaviour, results are pretty bad on GPT-3. I’d go for gpt-4 all day long

  • @duanxn
    @duanxn3 ай бұрын

    Great tutorial! Is there anyway to run local model instead of OpenAI model with CrewAI?

  • @duanxn

    @duanxn

    3 ай бұрын

    I found the document for connecting local running model. Thanks

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    great! how did that go? did you manage to set up ollama?

  • @duanxn

    @duanxn

    3 ай бұрын

    @@alejandro_ao thanks for following up. Yes, it worked.

  • @varunsakhuja19
    @varunsakhuja19Ай бұрын

    Great video, Alejandro! Btw, what is gitignore file? Is it neccesary?

  • @alejandro_ao

    @alejandro_ao

    Ай бұрын

    hey there. it is not necessary for the app to work, but it is needed to not leak your api keys to github (or other repo). when you push your code to github, the gotignore file tells your system which files NOT to include. this way, you can use the files locally but not push them. for example, in this case, our api keys are inside the .env file. so i added “.env” to .ignore so this file is not sent to github :)

  • @attilavass6935
    @attilavass69353 ай бұрын

    What LLMs did work well with CrewAI for you beside gpt-4-turbo, at least for specific tasks?

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    so far i have tried mixtral8x7b with groq and was working pretty good too. but that requires a bit more tweaking behind the scenes. i might do a video with benchmarks, actually...

  • @attilavass6935

    @attilavass6935

    3 ай бұрын

    @@alejandro_ao which role was tested with mixtral with success: all or just less important ones?

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    @@attilavass6935 i used the same llm for all agents here

  • @divyanshmishra535
    @divyanshmishra5353 ай бұрын

    can we try it with open source models ?

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    sure, they have an integration with ollama. and with a bit of tweaking, you can use any model that langchain has an integration for. coming up in the next video!

  • @dikshyakasaju7541
    @dikshyakasaju75413 ай бұрын

    Amazing!!! But how is this different from LangChain Agents and Tools and when to use one over another?

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    Hey there! Thanks :) CrewAI is actually built on top of LangChain agents. It allows you to create a team of LangChain agents that work together and interact with each other. You could achieve the same thing (a team of agents) by using LangChain agents alone, but you would have to code the entire framework of how they interact with each other and organize their tasks. Effectively, you would be coding your own version of CrewAI by doing that... I would say that if you need a single agent, LangChain alone is the way to go. If you want a tea of agents that would replace an entire departmemt in a company, then maybe CreaAI is for you :) A more direct comparison of two products that do the same thing would be CrewAI vs AutoGen, for example!

  • @dikshyakasaju7541

    @dikshyakasaju7541

    3 ай бұрын

    @@alejandro_ao Thanks for the brief explanation. Totally makes sense. :)

  • @AndyPandy-ni1io
    @AndyPandy-ni1io2 ай бұрын

    exa_py==1.0.9 wont install, also I get 63 errors does that matter? also my writing is different colour does that mean this don't work?

  • @alejandro_ao

    @alejandro_ao

    2 ай бұрын

    what version of python are you using? are you using conda environments? you can let me know with a bit more detail on the discord server. you can post your code there and maybe i can help you out: link.alejandro-ao.com/discord please tag me there when you post your question to be sure that i see it!

  • @jimcollins6619
    @jimcollins66192 ай бұрын

    Excellent. No annoying, heavy accent, no unpleasant grating or whining voice. What software was used to create the diagrams?

  • @wdmeister
    @wdmeister2 ай бұрын

    👍👌❤

  • @user-gd6gt8hi5r
    @user-gd6gt8hi5r2 ай бұрын

    You are handsome, and look kind. I couldn’t focus on the video🎉

  • @alejandro_ao

    @alejandro_ao

    Ай бұрын

    😘

  • @agugi
    @agugiАй бұрын

    I wish you would give an example that is more useful rather than one taken from the documentation. For instance, you could prepare and send an Instagram post once a week. Or, I don't know, you could examine Google ads and prepare a more effective ad campaign to surpass competitors. The ones in the documentation are certainly very helpful, but they contain information that is not useful to anyone. Maybe they are ideal for understanding the basics, but if you are going to teach how to build an agent from scratch, wouldn't it be great if it was something more useful and something people would want to use?

  • @Javed.humayun
    @Javed.humayun3 ай бұрын

    I am confused. Help me to find a roadmap for a career in AI.

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    hey mate, it is usually super hard to answer this question because it depends on each person. but i will try my best in a few lines: i would say that you should become a software engineer first, and then specialize in AI. become good at solving problems, applying algorithms and implementing APIs. backend development should be your main specialization. while you're at it, try to apply all your learning projects to AI-applications and learn the generative-AI stacks (langchain, llamaindex, crewai, vectorstores like chrmadb or qdrant...). but definitely aim at software first, Ai second. it will come naturally ;)

  • @Javed.humayun

    @Javed.humayun

    3 ай бұрын

    Thanks mate I am a software engineer ( backend ) right now I have a use case to discuss can I have your email to discuss? Thanks

  • @thomasnorden4633
    @thomasnorden46333 ай бұрын

    I am no programmer... yet... maybe that is why it doesn't work. I have installed crew ai and I get no errors. However, when I type "from crewai..." I don't get creai autosuggested, not Tasks... I suppose that I am doing something seriously wrong, but I can't figure out what.

  • @thomasnorden4633

    @thomasnorden4633

    3 ай бұрын

    Hmm... Import "crewai" could not be resolved Pylance (reportmissingimports)

  • @thomasnorden4633

    @thomasnorden4633

    3 ай бұрын

    Ahaaa.... if I use a different interpreter I get the crewai autosuggested!

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    hey there! are you sure you have created and activated your conda environment before installing and importing crewai? that might be the source of all your trouble!

  • @ddongson1010
    @ddongson10103 ай бұрын

    hi!! i’m Korean salesman of medical AI software. so i’ve wanted to learn AI programing or something. Can i use your picture of your blog on my blog? i want to write a process of studying AI . also i will mention that this pic is captured from your blog.

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    sure thing! please add a link back to my post!

  • @ddongson1010

    @ddongson1010

    3 ай бұрын

    @@alejandro_ao thanks~ but.. i didnt post on my blog yet because i dont understand CrewAI.. if i can post i will remain my blog url. i always watch your video. thanks.

  • @flakky626
    @flakky6262 ай бұрын

    Why not give code? I wanted requirements folder you didnt mention versions

  • @alejandro_ao

    @alejandro_ao

    2 ай бұрын

    hey there. the code is on the blog post. i also added the link to the gh repo over there.

  • @alejandro_ao

    @alejandro_ao

    2 ай бұрын

    here it is for quick access: github.com/alejandro-ao/crewai-crash-course

  • @flakky626

    @flakky626

    2 ай бұрын

    @@alejandro_ao Thank you so much

  • @MichaelDomer
    @MichaelDomer3 ай бұрын

    *_"Complete Course for Beginners"_* Beginners? You're seriously funny. 😂

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    hey michael, please let me know what exactly caught you off guard. i am trying to make my videos as beginner-friendly as possible, even though these are quite sophisticated frameworks

  • @AndyPandy-ni1io
    @AndyPandy-ni1io2 ай бұрын

    haha slow down with that mouse

  • @alejandro_ao

    @alejandro_ao

    2 ай бұрын

    yeah, i don't think i will be using this screen recording app for long format videos anymore tbh

  • @moroccanguy1957
    @moroccanguy19573 ай бұрын

    But is crew ai free ?

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    yeah, but the language models are not all free, especially the ones with which this works correctly. you can try to run this with ollama or groq, but they don’t work as well as GPT-4. the problem with groq is the rate limit, not the models they have

  • @moroccanguy1957

    @moroccanguy1957

    3 ай бұрын

    @@alejandro_ao thanks

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    @@moroccanguy1957 i may add that groq is amazing. the only reason why agentic behavior does not work with them right now is that they have not released a paid plan. they only have a rate-limited free tier. and the agents eat up on that rate-limit pretty fast. as soon as they release their paid options, they will be probably the best way to run open source LLMs that are great for creating agents

  • @cyborgmetropolis7652
    @cyborgmetropolis76522 ай бұрын

    I appreciate the tutorial but I had to stop 25 minutes in when I learned there's a 3rd party commercial API involved.

  • @alejandro_ao

    @alejandro_ao

    2 ай бұрын

    hey there, if you are talking about Exa, they have 1000 queries/month for free, so that should be enough for most projects and i found that their search api is the best for LLM-apps. if you prefer to use a google wrapper, you can use Google Serper (although they only give you 2500 free queries total): serper.dev/

  • @PhunkyBob
    @PhunkyBob2 ай бұрын

    $7 to $9 for the execution... ouch 😑

  • @alejandro_ao

    @alejandro_ao

    2 ай бұрын

    yeah… got-4o and claude are much cheaper though. you can also use local models like llama3 instead for free!

  • @PhunkyBob

    @PhunkyBob

    Ай бұрын

    @@alejandro_ao Groq + Llama3 70b may fit well in this configuration.

  • @AndyPandy-ni1io
    @AndyPandy-ni1io2 ай бұрын

    yet another impossible-to-follow video!!!!

  • @alejandro_ao

    @alejandro_ao

    2 ай бұрын

    hey there, can you let me know what you mean by this? where did you get lost? i try to make these videos as approachable as possible

  • @AndyPandy-ni1io

    @AndyPandy-ni1io

    2 ай бұрын

    Will do I'm just going to have another go. Will start from scratch, just new to python and environments and API keys and everything else. I won't give up till I get it working. So I was thinking if I had something working then I could understand subtle changes I make or bots I've designed and repurpose the agents to do what idea I've got. But when I load in the code it's got loads of errors so I'm doing something wrong or is it the code I download, I'll make step by step notes on my next attempt. Just to stress I'm 100% noob to this so if I can learn this, we'll then anyone can, I'm a good advert if it works 😄.

  • @sayanbhattacharyya95
    @sayanbhattacharyya952 ай бұрын

    Hi, what is the purpose of this in the get_contents() tool? contents = [content[:1000] for content in contents] as in, why specifically 1000 characters? Also, saw this error during execution: "I encountered an error while trying to use the tool. This was the error: eval() arg 1 must be a string, bytes or code object. Tool get_contents accepts these inputs: get_contents(ids: str) - Get the contents of a webpage. The ids must be passed in as a list, a list of ids returned from `search`." But overall, nice work!

  • @alejandro_ao

    @alejandro_ao

    2 ай бұрын

    hey there! thanks for pointing that out. Actually, there is no need to run the `eval` command as the LLM identifies the input in JSON automatically. So you can comment out that line and it should work. Sorry about that!

  • @AIfortomorrow2024
    @AIfortomorrow20242 ай бұрын

  • @alejandro_ao

    @alejandro_ao

    2 ай бұрын

    ✌️

  • @BrandonFoltz
    @BrandonFoltz3 ай бұрын

    Thanks!

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    thank you for the superthanks brandon!

  • @BrandonFoltz

    @BrandonFoltz

    3 ай бұрын

    @@alejandro_ao You have it backwards my friend. We thank YOU.

  • @Matepediaoficial
    @Matepediaoficial3 ай бұрын

    Thanks!!!!!

  • @alejandro_ao

    @alejandro_ao

    3 ай бұрын

    No problem!

Келесі