{"id":36067,"date":"2025-03-14T13:34:16","date_gmt":"2025-03-14T08:04:16","guid":{"rendered":"https:\/\/mobisoftinfotech.com\/resources\/?p=36067"},"modified":"2025-10-15T16:45:55","modified_gmt":"2025-10-15T11:15:55","slug":"build-ai-agents-crewai-framework","status":"publish","type":"post","link":"https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/build-ai-agents-crewai-framework","title":{"rendered":"AI Agent Framework Tutorial: Building AI Agents using CrewAI"},"content":{"rendered":"<p>In today\u2019s tech landscape, building AI agents are at the forefront of innovation, transforming how we approach automation and intelligent systems. In this tutorial, we\u2019ll explore how to build AI agents using CrewAI, a powerful AI agent framework renowned for its advanced engine capabilities, including flexible rule application and robust memory features.<\/p>\n\n\n\n<p>CrewAI offers a powerful CLI that generates a comprehensive project structure, allowing for <a href=\"https:\/\/mobisoftinfotech.com\/services\/artificial-intelligence\"><strong>AI agent development<\/strong><\/a> with prompts written in YAML files. However, for newcomers, this complexity can be overwhelming. That\u2019s why we\u2019re starting with a straightforward example: creating a fully functional AI agent within a single Python file. Later, we\u2019ll dive deeper into leveraging the CrewAI CLI for building more complex projects.<\/p>\n\n\n\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/w_w8Hq5zEpo?si=_szwN6zYEjK7daLG\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Key Concepts in Building AI Agents: Tasks and Agents<\/strong><\/h2>\n\n\n\n<p>A fundamental concept in the CrewAI framework is the distinction between tasks and agents. When building AI agents, you\u2019re essentially orchestrating a set of agents, each assigned to execute specific tasks.<\/p>\n\n\n\n<p>Let\u2019s say we want to create an AI agent that writes blog posts for us. (Yes, yet another blog post written by an AI agent!). Let\u2019s assume we do it in 2 steps. Given a blog title, the first agent creates an outline of the blog, and the second agent takes the outline as input and writes a full blog post by strictly following that outline.<\/p>\n\n\n\n<p>So here we have 2 agents, each of which performs 1 task:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Agent<\/strong>: Blog Outline Generator<br><strong>Task<\/strong>: Generate Blog Outline<\/li>\n\n\n\n<li><strong>Agent<\/strong>: Blog Writer<br><strong>Task<\/strong>: Write Blog<\/li>\n<\/ul>\n\n\n\n<p>Let&#8217;s see how we can do this in code!<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1: Setting Up Your AI Agent Framework Project<\/strong><\/h3>\n\n\n\n<p>CrewAI needs Python 3.10 or higher.&nbsp;<\/p>\n\n\n\n<p>Run `pip install crewai` to ensure it&#8217;s available. Also, run `pip install python-dotenv` to ensure that you have the dotenv package installed.&nbsp;<\/p>\n\n\n\n<p>Create a directory for your project.&nbsp;<\/p>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">mkdir crewaidemo\ncd crewaidemo<\/code><\/span><\/pre>\n\n\n<p>Create a .env file and add the following content in it.&nbsp;<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"HTML, XML\" data-shcb-language-slug=\"xml\"><span><code class=\"hljs language-xml\">MODEL=gpt-4o-mini\nOPENAI_API_KEY=<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">Your-Open-AI-key<\/span>&gt;<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">HTML, XML<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">xml<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Here we are specifying that we are going to use the &#8216;gpt-4o-mini&#8217; model from Open AI. To use that model, we will need to provide an OpenAI API key.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/mobisoftinfotech.com\/services\/artificial-intelligence?utm_source=blog&amp;utm_medium=referral&amp;utm_campaign=crew-ai-agent-cta1\"><noscript><img decoding=\"async\" width=\"855\" height=\"473\" src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2025\/03\/build-intelligent-ai-agents-mobisoft-infotech.png\" alt=\"Build Intelligent AI Agents with Mobisoft Infotech\" class=\"wp-image-36094\" title=\"Build Intelligent AI Agents with Mobisoft Infotech\"><\/noscript><img decoding=\"async\" width=\"855\" height=\"473\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20855%20473%22%3E%3C%2Fsvg%3E\" alt=\"Build Intelligent AI Agents with Mobisoft Infotech\" class=\"wp-image-36094 lazyload\" title=\"Build Intelligent AI Agents with Mobisoft Infotech\" data-src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2025\/03\/build-intelligent-ai-agents-mobisoft-infotech.png\"><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 2: Writing Code to Build AI Agents<\/strong><\/h3>\n\n\n\n<p>Create a file <code>main.py<\/code> and add the following code to it.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">from crewai import Agent, Crew, Process, Task\n\nfrom dotenv import load_dotenv\n\n<span class=\"hljs-comment\"># Load environment variables from .env file<\/span>\n\nload_dotenv()\n\n<span class=\"hljs-comment\"># Enable debug logging for LLM calls<\/span>\n\nimport litellm\n\nlitellm._turn_on_debug()\n\nblog_outline_generator = Agent(\n\n&nbsp;&nbsp;&nbsp;&nbsp;role=<span class=\"hljs-string\">\"Blog Outline Generator\"<\/span>,\n\n&nbsp;&nbsp;&nbsp;&nbsp;goal=<span class=\"hljs-string\">\"Given a title: {blog_title}, generate a short blog outline which is only 100 words and only 5 subheadings which will be used to write a blog post with 2000 words\"<\/span>,\n\n&nbsp;&nbsp;&nbsp;&nbsp;backstory=<span class=\"hljs-string\">\"You are a blog outline generator\"<\/span>\n\n)\n\ngenerate_blog_outline_task = Task(\n\n&nbsp;&nbsp;&nbsp;&nbsp;description=<span class=\"hljs-string\">\"Given a title: {blog_title}, generate a short blog outline which is only 100 words and only 5 subheadings which will be used to write a blog post with 2000 words\"<\/span>,\n\n&nbsp;&nbsp;&nbsp;&nbsp;expected_output=<span class=\"hljs-string\">\"A blog outline\"<\/span>,\n\n&nbsp;&nbsp;&nbsp;&nbsp;agent=blog_outline_generator,\n\n)\n\nblog_writer = Agent(\n\n&nbsp;&nbsp;&nbsp;&nbsp;role=<span class=\"hljs-string\">\"Blog Writer\"<\/span>,\n\n&nbsp;&nbsp;&nbsp;&nbsp;goal=<span class=\"hljs-string\">\"Given a blog outline for the title: {blog_title}, write a blog post with 2000 words\"<\/span>,\n\n&nbsp;&nbsp;&nbsp;&nbsp;backstory=<span class=\"hljs-string\">\"You are a blog writer\"<\/span>\n\n)&nbsp;&nbsp;&nbsp;\n\nwrite_blog_task = Task(\n\n&nbsp;&nbsp;&nbsp;&nbsp;description=<span class=\"hljs-string\">\"Given a blog outline for the title: {blog_title}, write a blog post with 2000 words\"<\/span>,\n\n&nbsp;&nbsp;&nbsp;&nbsp;expected_output=<span class=\"hljs-string\">\"A blog post, make sure to include main points from blog outline which you have received in the context in the blog post as subheadings\"<\/span>,\n\n&nbsp;&nbsp;&nbsp;&nbsp;agent=blog_writer,\n\n&nbsp;&nbsp;&nbsp;&nbsp;context=&#091;generate_blog_outline_task]\n\n)\n\ncrew = Crew(\n\n&nbsp;&nbsp;&nbsp;&nbsp;agents=&#091;blog_outline_generator, blog_writer],\n\n&nbsp;&nbsp;&nbsp;&nbsp;tasks=&#091;generate_blog_outline_task, write_blog_task],\n\n&nbsp;&nbsp;&nbsp;&nbsp;process=Process.sequential,\n\n&nbsp;&nbsp;&nbsp;&nbsp;verbose=<span class=\"hljs-keyword\">True<\/span>\n\n)\n\nresult = crew.kickoff(inputs={<span class=\"hljs-string\">'blog_title'<\/span>: <span class=\"hljs-string\">\"Violence in movies\"<\/span>})\n\n<span class=\"hljs-keyword\">print<\/span>(result)<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>That&#8217;s it. In less than 40 lines of Python code, you have your first working AI agent!&nbsp;<\/p>\n\n\n\n<p>Don&#8217;t worry if it doesn&#8217;t make a lot of sense. I have explained the code below section by section.&nbsp;<\/p>\n\n\n\n<p>If you want to try it out, just run:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"CSS\" data-shcb-language-slug=\"css\"><span><code class=\"hljs language-css\"><span class=\"hljs-selector-tag\">python<\/span> <span class=\"hljs-selector-tag\">main<\/span><span class=\"hljs-selector-class\">.py<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">CSS<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">css<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>It will print a lot of debugging output, and at the end, it should print your blog post! Something like the following:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-comment\"># Violence in Movies: A Deep Dive into Its Evolution, Impact, and Future<\/span>\n\nViolence has long been a captivating element within cinema, serving <span class=\"hljs-keyword\">as<\/span> a veritable tapestry woven through the various genres <span class=\"hljs-keyword\">and<\/span> eras of filmmaking. <span class=\"hljs-keyword\">As<\/span> we navigate through the numerous layers surrounding this topic, we will explore the historical context from which depictions of violence in film have emerged, the psychological ramifications <span class=\"hljs-keyword\">for<\/span> audiences, the role of censorship, cultural reflections, <span class=\"hljs-keyword\">and<\/span> <span class=\"hljs-keyword\">finally<\/span>, a glimpse into the future of violence in movies. Let<span class=\"hljs-string\">'s embark on this journey.\n\n## The Historical Context of Violence in Film\n\n...\n\n...<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 3: Understanding Code Execution for AI Agent Frameworks<\/strong><\/h3>\n\n\n\n<p>Let\u2019s break down the key sections of the code so you can better understand how the AI agent architecture works in CrewAI.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"CSS\" data-shcb-language-slug=\"css\"><span><code class=\"hljs language-css\"><span class=\"hljs-selector-tag\">from<\/span> <span class=\"hljs-selector-tag\">crewai<\/span> <span class=\"hljs-selector-tag\">import<\/span> <span class=\"hljs-selector-tag\">Agent<\/span>, <span class=\"hljs-selector-tag\">Crew<\/span>, <span class=\"hljs-selector-tag\">Process<\/span>, <span class=\"hljs-selector-tag\">Task<\/span>\n\n<span class=\"hljs-selector-tag\">from<\/span> <span class=\"hljs-selector-tag\">dotenv<\/span> <span class=\"hljs-selector-tag\">import<\/span> <span class=\"hljs-selector-tag\">load_dotenv<\/span>\n\n# <span class=\"hljs-selector-tag\">Load<\/span> <span class=\"hljs-selector-tag\">environment<\/span> <span class=\"hljs-selector-tag\">variables<\/span> <span class=\"hljs-selector-tag\">from<\/span> <span class=\"hljs-selector-class\">.env<\/span> <span class=\"hljs-selector-tag\">file<\/span>\n\n<span class=\"hljs-selector-tag\">load_dotenv<\/span>()\n\n# <span class=\"hljs-selector-tag\">Enable<\/span> <span class=\"hljs-selector-tag\">debug<\/span> <span class=\"hljs-selector-tag\">logging<\/span> <span class=\"hljs-selector-tag\">for<\/span> <span class=\"hljs-selector-tag\">LLM<\/span> <span class=\"hljs-selector-tag\">calls<\/span>\n\n<span class=\"hljs-selector-tag\">import<\/span> <span class=\"hljs-selector-tag\">litellm<\/span>\n\n<span class=\"hljs-selector-tag\">litellm<\/span><span class=\"hljs-selector-class\">._turn_on_debug<\/span>()<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">CSS<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">css<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Here, we have imported the Agent, Crew, Process, and Task classes from the <code>CrewAI<\/code> package. Then, we load the <code>.env<\/code> file with the <code>load_dotenv<\/code> function to set up the environment for AI-driven automation.<\/p>\n\n\n\n<p>Also, note that we\u2019ve imported the <code>litellm<\/code> package, which <code>CrewAI<\/code> uses to make the actual LLM API calls. We\u2019re enabling its debug output to help new agent creators understand the flow behind the scenes. If you find this output too distracting, you can comment out those lines!<\/p>\n\n\n\n<p>Now, let&#8217;s create our blog_outline_generator agent.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-6\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">blog_outline_generator = Agent(\n\n&nbsp;&nbsp;&nbsp;&nbsp;role=<span class=\"hljs-string\">\"Blog Outline Generator\"<\/span>,\n\n&nbsp;&nbsp;&nbsp;&nbsp;goal=<span class=\"hljs-string\">\"Given a title: {blog_title}, generate a short blog outline which is only 100 words and only 5 subheadings which will be used to write a blog post with 2000 words\"<\/span>,\n\n&nbsp;&nbsp;&nbsp;&nbsp;backstory=<span class=\"hljs-string\">\"You are a blog outline generator\"<\/span>\n\n)<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-6\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>In this section, we create an instance of the <code>Agent<\/code> class named <code>blog_outline_generator<\/code>. This agent has a specific role and goal: to generate a concise blog outline based on a provided title. Always write a meaningful role and a detailed goal. This will ensure that your agent works properly in the real world. The backstory gives context to the agent&#8217;s purpose, enhancing its functionality.<br><br>Here note the <code>{blog_title}<\/code>. This is how we pass external user input to the agent. Later, while creating our <code>Crew<\/code> object, we will pass the actual value for this parameter.&nbsp;<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-7\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">generate_blog_outline_task = Task(\n&nbsp;&nbsp;&nbsp;&nbsp;description=<span class=\"hljs-string\">\"Given a title: {blog_title}, generate a short blog outline which is only 100 words and only 5 subheadings which will be used to write a blog post with 2000 words\"<\/span>,\n\n&nbsp;&nbsp;&nbsp;&nbsp;expected_output=<span class=\"hljs-string\">\"A blog outline\"<\/span>,\n\n&nbsp;&nbsp;&nbsp;&nbsp;agent=blog_outline_generator,\n\n)<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-7\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Here, we define a Task called <code>generate_blog_outline_task<\/code>. This task describes what needs to be done (generate a blog outline) and specifies the expected output. It is associated with the <code>blog_outline_generator<\/code> agent, linking the task to the agent responsible for executing it.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-8\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">blog_writer = Agent(\n\n&nbsp;&nbsp;&nbsp;&nbsp;role=<span class=\"hljs-string\">\"Blog Writer\"<\/span>,\n\n&nbsp;&nbsp;&nbsp;&nbsp;goal=<span class=\"hljs-string\">\"Given a blog outline for the title: {blog_title}, write a blog post with 2000 words\"<\/span>,\n\n&nbsp;&nbsp;&nbsp;&nbsp;backstory=<span class=\"hljs-string\">\"You are a blog writer\"<\/span>\n\n)<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-8\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Next, we create another agent called <code>blog_writer<\/code>. This AI-powered agent will expand the outline into a full blog post of 2000 words, effectively utilizing AI-driven automation.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-9\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">write_blog_task = Task(\n\n&nbsp;&nbsp;&nbsp;&nbsp;description=<span class=\"hljs-string\">\"Given a blog outline for the title: {blog_title}, write a blog post with 2000 words\"<\/span>,\n\n&nbsp;&nbsp;&nbsp;&nbsp;expected_output=<span class=\"hljs-string\">\"A blog post, make sure to include main points from blog outline which you have received in the context in the blog post as subheadings\"<\/span>,\n\n&nbsp;&nbsp;&nbsp;&nbsp;agent=blog_writer,\n\n&nbsp;&nbsp;&nbsp;&nbsp;context=&#091;generate_blog_outline_task]\n\n)<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-9\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>In this section, we define the <code>write_blog_task<\/code>, which instructs the <code>blog_writer<\/code> agent to create a blog post based on the outline provided. The task description specifies the expected output. Most importantly, it includes the context of the previous task, ensuring that the writer has access to the outline.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-10\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">crew = Crew(\n\n&nbsp;&nbsp;&nbsp;&nbsp;agents=&#091;blog_outline_generator, blog_writer],\n\n&nbsp;&nbsp;&nbsp;&nbsp;tasks=&#091;generate_blog_outline_task, write_blog_task],\n\n&nbsp;&nbsp;&nbsp;&nbsp;process=Process.sequential,\n\n&nbsp;&nbsp;&nbsp;&nbsp;verbose=<span class=\"hljs-keyword\">True<\/span>\n\n)<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-10\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Here, we create a Crew instance that brings together the agents and tasks we defined earlier. The process is set to sequential, meaning the tasks will be executed one after the other. CrewAI also supports another type of flow called &#8216;Hierarchical&#8217; but that&#8217;s a subject of another blog post. The verbose flag is set to True, allowing for detailed logging during execution<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-11\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">result = crew.kickoff(inputs={<span class=\"hljs-string\">'blog_title'<\/span>: <span class=\"hljs-string\">\"Violence in movies\"<\/span>})\n\n<span class=\"hljs-keyword\">print<\/span>(result)<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-11\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Finally, we initiate the AI-driven automation process by calling the <code>kickoff<\/code> method on the <code>crew<\/code> instance, passing in a dictionary with the blog title as input. The result of the process is printed, which will include the final blog post.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p>That\u2019s it! That\u2019s how easy it is to create a working AI agent using CrewAI. I hope that I have managed to break down the process of creating AI agents in easy-to-understand steps. In the next post, we\u2019ll dive deeper into how to use <code>CrewAI<\/code> CLI to scaffold your agents and how to take a structured approach to build more complex AI agents.<\/p>\n\n\n\n<p>Be sure to subscribe to our blog using the &#8216;Let&#8217;s Stay Connected&#8217; form below!<\/p>\n\n\n\n<p>If you\u2019re looking to integrate AI agents into your workflow, <a href=\"https:\/\/mobisoftinfotech.com\/services\/ai-strategy-consulting\"><strong>AI strategy consulting<\/strong><\/a> can help you design an effective plan. Need expert guidance? Contact us to get started.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/mobisoftinfotech.com\/services\/ai-strategy-consulting?utm_source=blog&amp;utm_medium=referral&amp;utm_campaign=crew-ai-agent-cta2\"><noscript><img decoding=\"async\" width=\"855\" height=\"473\" src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2025\/03\/leverage-ai-with-mobisoft-infotech.png\" alt=\"AI is the Present and Future - Leverage it with Mobisoft Infotech\" class=\"wp-image-36096\" title=\"Leverage AI with Mobisoft Infotech\"><\/noscript><img decoding=\"async\" width=\"855\" height=\"473\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20855%20473%22%3E%3C%2Fsvg%3E\" alt=\"AI is the Present and Future - Leverage it with Mobisoft Infotech\" class=\"wp-image-36096 lazyload\" title=\"Leverage AI with Mobisoft Infotech\" data-src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2025\/03\/leverage-ai-with-mobisoft-infotech.png\"><\/a><\/figure>\n\n\n<div class=\"related-posts-section\"><h2>Related Posts<\/h2><ul class=\"related-posts-list\"><li><a href=\"https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/custom-ai-agent-development-crew-ai-framework\">Custom AI Agent Development: How To Create AI Agents With Crew AI Agent Framework With Function Calling Support<\/a><\/li><li><a href=\"https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/cloud-vs-dedicated-gpu-hosting-providers\">Cloud vs. Dedicated GPU Hosting: Top Providers Reviewed for AI &amp; ML Projects<\/a><\/li><li><a href=\"https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/conversational-analytics-sql-ai-agent-database\">Conversational Analytics Tutorial: How to Implement SQL AI Agent that Speaks Database<\/a><\/li><li><a href=\"https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/ai-customer-support-automation-guide-faqs-chatbots\">AI in Customer Support: The Complete Guide to Automation from FAQs to Chatbots<\/a><\/li><\/ul><\/div>\n\n\n<div class=\"modern-author-card\">\n    <div class=\"author-card-content\">\n        <div class=\"author-info-section\">\n            <div class=\"author-avatar\">\n                <noscript><img decoding=\"async\" src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2022\/04\/Pritam1.jpg\" alt=\"Pritam Barhate\"><\/noscript><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" alt=\"Pritam Barhate\" data-src=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2022\/04\/Pritam1.jpg\" class=\" lazyload\">\n            <\/div>\n            <div class=\"author-details\">\n                <h3 class=\"author-name\">Pritam Barhate<\/h3>\n                <p class=\"author-title\">Head of Technology Innovation<\/p>\n                <a href=\"javascript:void(0);\" class=\"read-more-link read-more-btn\" onclick=\"toggleAuthorBio(this); return false;\">Read more <noscript><img decoding=\"async\" src=\"\/assets\/images\/blog\/Vector.png\" alt=\"expand\" class=\"read-more-arrow down-arrow\"><\/noscript><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" alt=\"expand\" class=\"read-more-arrow down-arrow lazyload\" data-src=\"\/assets\/images\/blog\/Vector.png\"><\/a>\n                <div class=\"author-bio-expanded\">\n                    <p>Pritam Barhate, with an experience of 14+ years in technology, heads Technology Innovation at <a href=\"https:\/\/mobisoftinfotech.com\" target=\"_blank\" rel=\"noopener\">Mobisoft Infotech<\/a>. He has a rich experience in design and development. He has been a consultant for a variety of industries and startups. At Mobisoft Infotech, he primarily focuses on technology resources and develops the most advanced solutions.<\/p>\n                    <div class=\"author-social-links\">\n                        <div class=\"social-icon\">\n                            <a href=\"https:\/\/www.linkedin.com\/in\/pritam-barhate-90b93414\/\" target=\"_blank\" rel=\"nofollow noopener\"><i class=\"icon-sprite linkedin\"><\/i><\/a>\n                            <a href=\"https:\/\/twitter.com\/pritambarhate\" target=\"_blank\" rel=\"nofollow noopener\"><i class=\"icon-sprite twitter\"><\/i><\/a>\n                        <\/div>\n                    <\/div>\n                    <a href=\"javascript:void(0);\" class=\"read-more-link read-less-btn\" onclick=\"toggleAuthorBio(this); return false;\" style=\"display: none;\">Read less <noscript><img decoding=\"async\" src=\"\/assets\/images\/blog\/Vector.png\" alt=\"collapse\" class=\"read-more-arrow up-arrow\"><\/noscript><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" alt=\"collapse\" class=\"read-more-arrow up-arrow lazyload\" data-src=\"\/assets\/images\/blog\/Vector.png\"><\/a>\n                <\/div>\n            <\/div>\n        <\/div>\n        <div class=\"share-section\">\n            <span class=\"share-label\">Share Article<\/span>\n            <div class=\"social-share-buttons\">\n                <a href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fmobisoftinfotech.com%2Fresources%2Fblog%2Fai-machine-learning%2Fbuild-ai-agents-crewai-framework\" target=\"_blank\" class=\"share-btn facebook-share\"><i class=\"fa fa-facebook-f\"><\/i><\/a>\n                <a href=\"https:\/\/www.linkedin.com\/sharing\/share-offsite\/?url=https%3A%2F%2Fmobisoftinfotech.com%2Fresources%2Fblog%2Fai-machine-learning%2Fbuild-ai-agents-crewai-framework\" target=\"_blank\" class=\"share-btn linkedin-share\"><i class=\"fa fa-linkedin\"><\/i><\/a>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n\n\n<script type=\"application\/ld+json\">\n{\n  \"@context\": \"https:\/\/schema.org\",\n  \"@type\": \"Article\",\n  \"mainEntityOfPage\": {\n    \"@type\": \"WebPage\",\n    \"@id\": \"https:\/\/mobisoftinfotech.com\/resources\/blog\/build-ai-agents-crewai-framework\"\n  },\n  \"headline\": \"AI Agent Framework Tutorial: Building AI Agents using CrewAI\",\n  \"description\": \"Learn how to build AI agents using CrewAI\u2019s framework. Step-by-step tutorial on AI agent development, automation, and programming with CrewAI.\",\n  \"image\": \"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2025\/03\/ai-agent-framework-tutorial-building-intelligent-agents.png\",\n  \"author\": {\n    \"@type\": \"Person\",\n    \"name\": \"Pritam Barhate\",\n    \"description\": \"Pritam Barhate, with an experience of 14+ years in technology, heads Technology Innovation at Mobisoft Infotech. He has a rich experience in design and development. He has been a consultant for a variety of industries and startups. At Mobisoft Infotech, he primarily focuses on technology resources and develops the most advanced solutions.\"\n  },\n  \"publisher\": {\n    \"@type\": \"Organization\",\n    \"name\": \"Mobisoft Infotech\",\n    \"logo\": {\n      \"@type\": \"ImageObject\",\n      \"url\": \"https:\/\/mobisoftinfotech.com\/assets\/images\/mshomepage\/MI_Logo-white.svg\",\n      \"width\": 600,\n      \"height\": 60\n    }\n  },\n  \"datePublished\": \"2025-03-14\",\n  \"dateModified\": \"2025-03-14\"\n}\n<\/script>\n<script type=\"application\/ld+json\">\n{\n  \"@context\": \"https:\/\/schema.org\",\n  \"@type\": \"Organization\",\n  \"name\": \"Mobisoft Infotech\",\n  \"url\": \"https:\/\/mobisoftinfotech.com\/\",\n  \"logo\": \"https:\/\/mobisoftinfotech.com\/assets\/images\/MI_Logo.svg\",\n  \"sameAs\": [\n    \"https:\/\/www.facebook.com\/pages\/Mobisoft-Infotech\/131035500270720\",\n    \"https:\/\/twitter.com\/MobisoftInfo\",\n    \"https:\/\/www.instagram.com\/mobisoftinfotech\/\",\n    \"https:\/\/www.youtube.com\/channel\/UCtwuTXKUXFX7k0NSYhsMeTg\",\n    \"https:\/\/www.linkedin.com\/company\/mobisoft-infotech\",\n    \"https:\/\/in.pinterest.com\/mobisoftinfotech\/\",\n    \"https:\/\/github.com\/MobisoftInfotech\"\n  ],\n  \"contactPoint\": [\n    {\n      \"@type\": \"ContactPoint\",\n      \"telephone\": \"+1-855-572-2777\",\n      \"contactType\": \"Customer Service\",\n      \"areaServed\": \"US\",\n      \"availableLanguage\": [\"English\"]\n    },\n    {\n      \"@type\": \"ContactPoint\",\n      \"telephone\": \"+91-858-600-8627\",\n      \"contactType\": \"Customer Service\",\n      \"areaServed\": \"IN\",\n      \"availableLanguage\": [\"English\"]\n    }\n  ]\n}\n<\/script>\n<script type=\"application\/ld+json\">\n{\n    \"@context\": \"https:\/\/schema.org\",\n    \"@type\": \"LocalBusiness\",\n    \"name\": \"Mobisoft Infotech\",\n    \"url\": \"https:\/\/mobisoftinfotech.com\",\n    \"logo\": \"https:\/\/mobisoftinfotech.com\/assets\/images\/mshomepage\/MI_Logo-white.svg\",\n    \"description\": \"Mobisoft Infotech specializes in custom software development and digital solutions.\",\n    \"address\": {\n        \"@type\": \"PostalAddress\",\n        \"streetAddress\": \"5718 Westheimer Rd Suite 1000\",\n        \"addressLocality\": \"Houston\",\n        \"addressRegion\": \"TX\",\n        \"postalCode\": \"77057\",\n        \"addressCountry\": \"USA\"\n    },\n    \"contactPoint\": [{\n        \"@type\": \"ContactPoint\",\n        \"telephone\": \"+1-855-572-2777\",\n        \"contactType\": \"Customer Service\",\n        \"areaServed\": [\"USA\", \"Worldwide\"],\n        \"availableLanguage\": [\"English\"]\n    }],\n    \"sameAs\": [\n        \"https:\/\/www.facebook.com\/pages\/Mobisoft-Infotech\/131035500270720\",\n        \"https:\/\/x.com\/MobisoftInfo\",\n        \"https:\/\/www.linkedin.com\/company\/mobisoft-infotech\",\n        \"https:\/\/in.pinterest.com\/mobisoftinfotech\/\",\n        \"https:\/\/www.instagram.com\/mobisoftinfotech\/\",\n        \"https:\/\/github.com\/MobisoftInfotech\",\n        \"https:\/\/www.behance.net\/MobisoftInfotech\",\n        \"https:\/\/www.youtube.com\/channel\/UCtwuTXKUXFX7k0NSYhsMeTg\"\n    ]\n}\n<\/script>\n<script type=\"application\/ld+json\">\n    [\n    {\n            \"@context\": \"https:\/\/schema.org\",\n            \"@type\": \"ImageObject\",\n            \"contentUrl\": \"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2025\/03\/ai-agent-framework-tutorial-building-intelligent-agents.png\",\n            \"url\": \"https:\/\/mobisoftinfotech.com\/resources\/blog\/build-ai-agents-crewai-framework\",\n            \"name\": \"AI Agent Framework Tutorial: Building AI Agents using CrewAI\",\n            \"caption\": \"Learn how to build intelligent AI agents using the CrewAI framework in this comprehensive tutorial.\",\n            \"description\": \"This AI Agent Framework Tutorial will guide you through the process of building AI agents using the powerful CrewAI platform, with a focus on AI-driven automation and intelligent virtual assistants.\",\n            \"license\": \"https:\/\/mobisoftinfotech.com\/terms\",\n            \"acquireLicensePage\": \"https:\/\/mobisoftinfotech.com\/acquire-license\",\n            \"creditText\": \"Mobisoft Infotech\",\n            \"copyrightNotice\": \"Mobisoft Infotech\",\n            \"creator\": {\n                \"@type\": \"Organization\",\n                \"name\": \"Mobisoft Infotech\"\n            },\n            \"thumbnail\": \"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2025\/03\/ai-agent-framework-tutorial-building-intelligent-agents.png\"\n        },\n        {\n            \"@context\": \"https:\/\/schema.org\",\n            \"@type\": \"ImageObject\",\n            \"contentUrl\": \"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2025\/03\/build-intelligent-ai-agents-mobisoft-infotech.png\",\n            \"url\": \"https:\/\/mobisoftinfotech.com\/resources\/blog\/build-ai-agents-crewai-framework\",\n            \"name\": \"Build Intelligent AI Agents with Mobisoft Infotech\",\n            \"caption\": \"Leverage cutting-edge AI frameworks and technologies to build intelligent AI agents with Mobisoft Infotech.\",\n            \"description\": \"Discover how Mobisoft Infotech helps you build intelligent AI agents by utilizing advanced AI frameworks such as CrewAI, enabling automation and enhancing business processes.\",\n            \"license\": \"https:\/\/mobisoftinfotech.com\/terms\",\n            \"acquireLicensePage\": \"https:\/\/mobisoftinfotech.com\/acquire-license\",\n            \"creditText\": \"Mobisoft Infotech\",\n            \"copyrightNotice\": \"Mobisoft Infotech\",\n            \"creator\": {\n                \"@type\": \"Organization\",\n                \"name\": \"Mobisoft Infotech\"\n            },\n            \"thumbnail\": \"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2025\/03\/build-intelligent-ai-agents-mobisoft-infotech.png\"\n        },\n        {\n            \"@context\": \"https:\/\/schema.org\",\n            \"@type\": \"ImageObject\",\n            \"contentUrl\": \"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2025\/03\/leverage-ai-with-mobisoft-infotech.png\",\n            \"url\": \"https:\/\/mobisoftinfotech.com\/resources\/blog\/build-ai-agents-crewai-framework\",\n            \"name\": \"Leverage AI with Mobisoft Infotech\",\n            \"caption\": \"AI is the future of business automation. Leverage Mobisoft Infotech\u2019s expertise to develop AI agents that transform your business.\",\n            \"description\": \"Leverage the power of AI to future-proof your business. Mobisoft Infotech provides AI agent development services, including AI-driven automation, with expertise in CrewAI.\",\n            \"license\": \"https:\/\/mobisoftinfotech.com\/terms\",\n            \"acquireLicensePage\": \"https:\/\/mobisoftinfotech.com\/acquire-license\",\n            \"creditText\": \"Mobisoft Infotech\",\n            \"copyrightNotice\": \"Mobisoft Infotech\",\n            \"creator\": {\n                \"@type\": \"Organization\",\n                \"name\": \"Mobisoft Infotech\"\n            },\n            \"thumbnail\": \"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2025\/03\/leverage-ai-with-mobisoft-infotech.png\"\n        }\n        ]\n    <\/script>\n<style>\n@media (max-width:767px){\n.post-content li:before{\n    left: 0;\n}\n\n.post-content li {\n    padding-left: 20px;\n}\n}\nspan.hljs-keyword {\n    font-weight: normal;\n}\n\nspan.hljs-name {\n    font-weight: normal;\n}\nspan.hljs-selector-tag {\n    font-weight: normal;\n}\n<\/style>\n","protected":false},"excerpt":{"rendered":"<p>In today\u2019s tech landscape, building AI agents are at the forefront of innovation, transforming how we approach automation and intelligent systems. In this tutorial, we\u2019ll explore how to build AI agents using CrewAI, a powerful AI agent framework renowned for its advanced engine capabilities, including flexible rule application and robust memory features. CrewAI offers a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":36077,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_s2mail":"","footnotes":""},"categories":[4998],"tags":[4861,4863,4859,4857,4867,4866,4864,4865,4860,4862,4856,4870,4868,4869,4872,4871,4858],"class_list":["post-36067","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai-machine-learning","tag-ai-agent-architecture","tag-ai-agent-creation","tag-ai-agent-development","tag-ai-agent-frameworks","tag-ai-agent-programming","tag-ai-agents-for-automation","tag-ai-agents-in-business","tag-ai-agents-in-customer-service","tag-ai-driven-automation","tag-ai-powered-virtual-assistants","tag-building-ai-agents","tag-building-ai-agents-from-scratch","tag-crew-ai","tag-crew-ai-agents","tag-crew-ai-assistant","tag-crew-ai-framework","tag-how-to-build-ai-agents"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Build AI Agents with CrewAI: Complete Framework Tutorial<\/title>\n<meta name=\"description\" content=\"Learn how to build AI agents using CrewAI\u2019s framework. Step-by-step tutorial on AI agent development, automation, and programming with CrewAI.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/build-ai-agents-crewai-framework\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Build AI Agents with CrewAI: Complete Framework Tutorial\" \/>\n<meta property=\"og:description\" content=\"Learn how to build AI agents using CrewAI\u2019s framework. Step-by-step tutorial on AI agent development, automation, and programming with CrewAI.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/build-ai-agents-crewai-framework\" \/>\n<meta property=\"og:site_name\" content=\"Mobisoft Infotech\" \/>\n<meta property=\"article:published_time\" content=\"2025-03-14T08:04:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-15T11:15:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2025\/03\/og-AI-Agent-Framework-Tutorial.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"525\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Pritam Barhate\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pritam Barhate\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/build-ai-agents-crewai-framework#article\",\"isPartOf\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/build-ai-agents-crewai-framework\"},\"author\":{\"name\":\"Pritam Barhate\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/#\/schema\/person\/fa762036b3364f26abeea146c01487ee\"},\"headline\":\"AI Agent Framework Tutorial: Building AI Agents using CrewAI\",\"datePublished\":\"2025-03-14T08:04:16+00:00\",\"dateModified\":\"2025-10-15T11:15:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/build-ai-agents-crewai-framework\"},\"wordCount\":978,\"image\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/build-ai-agents-crewai-framework#primaryimage\"},\"thumbnailUrl\":\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2025\/03\/ai-agent-framework-tutorial-building-intelligent-agents.png\",\"keywords\":[\"ai agent architecture\",\"ai agent creation\",\"ai agent development\",\"ai agent frameworks\",\"ai agent programming\",\"ai agents for automation\",\"ai agents in business\",\"ai agents in customer service\",\"ai-driven automation\",\"ai-powered virtual assistants\",\"building ai agents\",\"building ai agents from scratch\",\"crew ai\",\"crew ai agents\",\"crew ai assistant\",\"crew ai framework\",\"how to build ai agents\"],\"articleSection\":[\"AI Machine Learning\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/build-ai-agents-crewai-framework\",\"url\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/build-ai-agents-crewai-framework\",\"name\":\"Build AI Agents with CrewAI: Complete Framework Tutorial\",\"isPartOf\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/build-ai-agents-crewai-framework#primaryimage\"},\"image\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/build-ai-agents-crewai-framework#primaryimage\"},\"thumbnailUrl\":\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2025\/03\/ai-agent-framework-tutorial-building-intelligent-agents.png\",\"datePublished\":\"2025-03-14T08:04:16+00:00\",\"dateModified\":\"2025-10-15T11:15:55+00:00\",\"author\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/#\/schema\/person\/fa762036b3364f26abeea146c01487ee\"},\"description\":\"Learn how to build AI agents using CrewAI\u2019s framework. Step-by-step tutorial on AI agent development, automation, and programming with CrewAI.\",\"breadcrumb\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/build-ai-agents-crewai-framework#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/build-ai-agents-crewai-framework\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/build-ai-agents-crewai-framework#primaryimage\",\"url\":\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2025\/03\/ai-agent-framework-tutorial-building-intelligent-agents.png\",\"contentUrl\":\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2025\/03\/ai-agent-framework-tutorial-building-intelligent-agents.png\",\"width\":855,\"height\":392,\"caption\":\"AI Agent Framework Tutorial for Building Intelligent AI Agents with CrewAI\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/build-ai-agents-crewai-framework#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/mobisoftinfotech.com\/resources\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AI Agent Framework Tutorial: Building AI Agents using CrewAI\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/#website\",\"url\":\"https:\/\/mobisoftinfotech.com\/resources\/\",\"name\":\"Mobisoft Infotech\",\"description\":\"Discover Mobility\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/mobisoftinfotech.com\/resources\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/#\/schema\/person\/fa762036b3364f26abeea146c01487ee\",\"name\":\"Pritam Barhate\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/0e481c7ce54b3567ac70ddfc493523eefce0bdc3ee69fd2654f8f60a79e2f178?s=96&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0e481c7ce54b3567ac70ddfc493523eefce0bdc3ee69fd2654f8f60a79e2f178?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0e481c7ce54b3567ac70ddfc493523eefce0bdc3ee69fd2654f8f60a79e2f178?s=96&r=g\",\"caption\":\"Pritam Barhate\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Build AI Agents with CrewAI: Complete Framework Tutorial","description":"Learn how to build AI agents using CrewAI\u2019s framework. Step-by-step tutorial on AI agent development, automation, and programming with CrewAI.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/build-ai-agents-crewai-framework","og_locale":"en_US","og_type":"article","og_title":"Build AI Agents with CrewAI: Complete Framework Tutorial","og_description":"Learn how to build AI agents using CrewAI\u2019s framework. Step-by-step tutorial on AI agent development, automation, and programming with CrewAI.","og_url":"https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/build-ai-agents-crewai-framework","og_site_name":"Mobisoft Infotech","article_published_time":"2025-03-14T08:04:16+00:00","article_modified_time":"2025-10-15T11:15:55+00:00","og_image":[{"width":1000,"height":525,"url":"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2025\/03\/og-AI-Agent-Framework-Tutorial.png","type":"image\/png"}],"author":"Pritam Barhate","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Pritam Barhate","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/build-ai-agents-crewai-framework#article","isPartOf":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/build-ai-agents-crewai-framework"},"author":{"name":"Pritam Barhate","@id":"https:\/\/mobisoftinfotech.com\/resources\/#\/schema\/person\/fa762036b3364f26abeea146c01487ee"},"headline":"AI Agent Framework Tutorial: Building AI Agents using CrewAI","datePublished":"2025-03-14T08:04:16+00:00","dateModified":"2025-10-15T11:15:55+00:00","mainEntityOfPage":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/build-ai-agents-crewai-framework"},"wordCount":978,"image":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/build-ai-agents-crewai-framework#primaryimage"},"thumbnailUrl":"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2025\/03\/ai-agent-framework-tutorial-building-intelligent-agents.png","keywords":["ai agent architecture","ai agent creation","ai agent development","ai agent frameworks","ai agent programming","ai agents for automation","ai agents in business","ai agents in customer service","ai-driven automation","ai-powered virtual assistants","building ai agents","building ai agents from scratch","crew ai","crew ai agents","crew ai assistant","crew ai framework","how to build ai agents"],"articleSection":["AI Machine Learning"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/build-ai-agents-crewai-framework","url":"https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/build-ai-agents-crewai-framework","name":"Build AI Agents with CrewAI: Complete Framework Tutorial","isPartOf":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/#website"},"primaryImageOfPage":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/build-ai-agents-crewai-framework#primaryimage"},"image":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/build-ai-agents-crewai-framework#primaryimage"},"thumbnailUrl":"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2025\/03\/ai-agent-framework-tutorial-building-intelligent-agents.png","datePublished":"2025-03-14T08:04:16+00:00","dateModified":"2025-10-15T11:15:55+00:00","author":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/#\/schema\/person\/fa762036b3364f26abeea146c01487ee"},"description":"Learn how to build AI agents using CrewAI\u2019s framework. Step-by-step tutorial on AI agent development, automation, and programming with CrewAI.","breadcrumb":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/build-ai-agents-crewai-framework#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/build-ai-agents-crewai-framework"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/build-ai-agents-crewai-framework#primaryimage","url":"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2025\/03\/ai-agent-framework-tutorial-building-intelligent-agents.png","contentUrl":"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2025\/03\/ai-agent-framework-tutorial-building-intelligent-agents.png","width":855,"height":392,"caption":"AI Agent Framework Tutorial for Building Intelligent AI Agents with CrewAI"},{"@type":"BreadcrumbList","@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/ai-machine-learning\/build-ai-agents-crewai-framework#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mobisoftinfotech.com\/resources\/"},{"@type":"ListItem","position":2,"name":"AI Agent Framework Tutorial: Building AI Agents using CrewAI"}]},{"@type":"WebSite","@id":"https:\/\/mobisoftinfotech.com\/resources\/#website","url":"https:\/\/mobisoftinfotech.com\/resources\/","name":"Mobisoft Infotech","description":"Discover Mobility","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mobisoftinfotech.com\/resources\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/mobisoftinfotech.com\/resources\/#\/schema\/person\/fa762036b3364f26abeea146c01487ee","name":"Pritam Barhate","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0e481c7ce54b3567ac70ddfc493523eefce0bdc3ee69fd2654f8f60a79e2f178?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0e481c7ce54b3567ac70ddfc493523eefce0bdc3ee69fd2654f8f60a79e2f178?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0e481c7ce54b3567ac70ddfc493523eefce0bdc3ee69fd2654f8f60a79e2f178?s=96&r=g","caption":"Pritam Barhate"}}]}},"_links":{"self":[{"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/posts\/36067","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/comments?post=36067"}],"version-history":[{"count":29,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/posts\/36067\/revisions"}],"predecessor-version":[{"id":44241,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/posts\/36067\/revisions\/44241"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/media\/36077"}],"wp:attachment":[{"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/media?parent=36067"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/categories?post=36067"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/tags?post=36067"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}