Hey guys! I made some simple but much needed improvements to the way we write book chapters in parallel. To see these improvements and updates, please checkout the source code in the description. Also, thank you to everyone who has pointed out issues and improvements that I can make to the source code. I believe I've addressed all the issues and added in all the fixes mentioned so far! Y'all are awesome! Please let me know if you find anything else or have any other questions!
Most easiest and structured way i have seen of the internet to learn CREW I really hope if u will be able to make long video on Langgraph with some real world project 🙌
@@bhancock_ai thanks! Right now i work with a lot of excel files so I started learning it to speed up my productivity. Now i can leave work 2 hours early. lol hopefully it will land me a data analyst job one day. I've been keeping on eye on RAG AI and you're my go-to currently.
Hi Brandon, Great to be back from vacation and reconnect with the group. I'm excited about the new CrewAI Flows crash course! Hoping it can help me automate my Mail2Sheet email extraction or email scraper system and leverage CrewAI's full potential. Cheers!
Hi Brandon, I loved the video-it was really well done! I’ve been using CrewAI for a while, but I occasionally run into exceptions that break the entire crew, and I haven’t found many resources on handling this. Do you have any suggestions on managing or troubleshooting these issues?
@@bhancock_ai Appreciate your reply:) In some cases, if the LLM cannot determine a final answer and reaches the iteration limit, an error message-'Agent stopped due to iteration limit or time limit'-may occur. To address this, I currently check the results once the crew has completed (e.g., ensuring data is updated in the database). If the expected updates aren't present, will rerun the crew. However, I'm uncertain if this approach is the most effective. Are there more effective ways to capture specific task errors, halt the crew, and resume from the exact task where the error occurred?
Hey! We actually did a last minute improvement on flows to make them not async so you don't have to wrap them in an asyncio wrapper. If you update to ^0.76, you won't have to worry about it anymore. Please let me know if you have any other questions!
@@bhancock_ai I ran into an issue , while crewai flow kickoff works perfectly , the crewai flow plot wont and raises below error. I have tried to update all dependencies and will look further how to resolve it. In case you know any workarounds would appreciate. Error: Caused by: program not found An error occurred while plotting the flow: Command '['uv', 'run', 'plot_flow']' returned non-zero exit status
this is so not what I thought Crew AI was. Its basically programming lol you also did make a minor error at the start (I don't personally love the verbiage of 'flow' 'start' its confusing and I would have thought they would be named (if those names) inversesly. But you mentioned at one point (then self corrected) a start starts a flow. I'd have at the start explained the simple concept that a flow can have many starts, like you have a drive through a city and there will be many red lights on crossings with 'starts' or something to make it make sense. my .2cents. Good video.
I'm a dummy. That's why lol! It should have been this one: `crewai import LLM` Great call! I'm going to do a followup more advanced crewai flows tutorial soon and I'll be sure to use the right one in the next video!
Brandon, just wondering. What if you want to use something like a vector store as the repository for your book. Would you just change the researcher to use the vector store instead of the Internet?
Exactly! You would just give your Researcher a different tool. Instead of a search the internet tool, you'd give them a query a vector store tool. Good luck! Let me know if you need help with anything else!
Thank you, Brandon, for this fantastic tutorial! I’m curious if this augmented CrewAI still lacks the Cycles feature that LangGraph is known for, which loops back to the previous node for self-reflection?
hey! I’m so glad you brought that up! You can definitely do cycles for self reflection with flows! there is an example over on our website where you can set up a feedback loop with human in the middle. Here is the link to the example. github.com/crewAIInc/crewAI-examples/tree/main/lead-score-flow Also, you bring up a really good point about auto self reflection so I will go update and add an example to the docs right now!
Hey! I just created a new example in the crewAI docs and my next RUclips deep dive into flows with cycles. Here's the link in the mean time: github.com/crewAIInc/crewAI-examples/tree/main/self_evaluation_loop_flow Thank you for calling this out!
Thanks for the detailed example. This is Great. How can i have a fixed chapter list for a book? I want each book to be with same structure, can u define the list of chaptters as a fixed value instead of using a crew to generate that?
Awesome question! The simplest solution would be to update the chapter outline generator crew to say please generate a chapter outline in this format: [Insert Format Here] ---- Or, you could add the chapter list as a fixed value in the `state` of the flow. I hope that helps! Please let me know if you have any followup questions!
@@bhancock_ai so what you are suggesting is to override the outline_book_crew and set it as fixed values like this: chapters=[1. intro 2.{} 3.{}... X.summary]? did i understood you correctly?
Is it normal for the Flow or CrewaI to take long time to initiate. What factors are to be considered in terms of performance. Is Crew AI slower then langgraph?
Help??! > sudo pip3 install crewai Could not find a version that satisfies the requirement crewai (from versions: ) No matching distribution found for crewai
Hey! I'd recommend to u[date to the latest version of crewAI which is currently 0.76.2. Please let me know if you run into the same issue after updating versions!
Hey guys! I made some simple but much needed improvements to the way we write book chapters in parallel. To see these improvements and updates, please checkout the source code in the description.
Also, thank you to everyone who has pointed out issues and improvements that I can make to the source code. I believe I've addressed all the issues and added in all the fixes mentioned so far!
Y'all are awesome! Please let me know if you find anything else or have any other questions!
Most easiest and structured way i have seen of the internet to learn CREW
I really hope if u will be able to make long video on Langgraph with some real world project 🙌
Brandon just posted, hold all my calls, boil the kettle and fire up your code editor!! Looking forward to this one
Love it! Can’t wait to hear what you think about flows!
awesome video! I'm at the 6-month mark with python now and you have inspired me from the beginning, ty!
That's awesome man! Don't give up! Keep going!
Out of curiosity, what is your end goal? Launching your own apps? Landing a job?
@@bhancock_ai thanks! Right now i work with a lot of excel files so I started learning it to speed up my productivity. Now i can leave work 2 hours early. lol hopefully it will land me a data analyst job one day. I've been keeping on eye on RAG AI and you're my go-to currently.
Hi Brandon,
Great to be back from vacation and reconnect with the group. I'm excited about the new CrewAI Flows crash course! Hoping it can help me automate my Mail2Sheet email extraction or email scraper system and leverage CrewAI's full potential.
Cheers!
Yes, Brandon`s approach is top notch, can wait to work on this
Thanks man!! We made so many improvements to flows that I had to record this like 3 times for you guys! I think y’all are going to love it!
Amazing detailed tutorial! Thanks Brandon!
Incredible information for the less skilled. Thank you Sir!
again thanks! btw, when running the book, i would expect in the plot to show that we have multiply chapters. this must be some UX improvement here
Hi Brandon, I loved the video-it was really well done! I’ve been using CrewAI for a while, but I occasionally run into exceptions that break the entire crew, and I haven’t found many resources on handling this. Do you have any suggestions on managing or troubleshooting these issues?
Hey! Do you have any examples that you could share with me so I can see what you're talking about?
@@bhancock_ai Appreciate your reply:) In some cases, if the LLM cannot determine a final answer and reaches the iteration limit, an error message-'Agent stopped due to iteration limit or time limit'-may occur. To address this, I currently check the results once the crew has completed (e.g., ensuring data is updated in the database). If the expected updates aren't present, will rerun the crew. However, I'm uncertain if this approach is the most effective. Are there more effective ways to capture specific task errors, halt the crew, and resume from the exact task where the error occurred?
Thanks Brandon - you are the best!
Excellent tutorial Brandon.
Thank you for this awesome video!
Excellent! Looking forward to improve the flow. Just found that py312 works and runs flow nicely while 3.11 needs asyncio wrapper the kickoff?
Hey! We actually did a last minute improvement on flows to make them not async so you don't have to wrap them in an asyncio wrapper.
If you update to ^0.76, you won't have to worry about it anymore.
Please let me know if you have any other questions!
@@bhancock_ai I ran into an issue , while crewai flow kickoff works perfectly , the crewai flow plot wont and raises below error. I have tried to update all dependencies and will look further how to resolve it. In case you know any workarounds would appreciate. Error:
Caused by: program not found
An error occurred while plotting the flow: Command '['uv', 'run', 'plot_flow']' returned non-zero exit status
this is so not what I thought Crew AI was. Its basically programming lol you also did make a minor error at the start (I don't personally love the verbiage of 'flow' 'start' its confusing and I would have thought they would be named (if those names) inversesly. But you mentioned at one point (then self corrected) a start starts a flow. I'd have at the start explained the simple concept that a flow can have many starts, like you have a drive through a city and there will be many red lights on crossings with 'starts' or something to make it make sense. my .2cents. Good video.
Sir, please create a video on interactive chatbot with crew ai having memory and being interactive throughout the conversation .
very easy to understand tutorial
Awesome! One question: Why do you use from langchain_openai import ChatOpenAI instead of from crewai import LLM ?
I'm a dummy. That's why lol!
It should have been this one: `crewai import LLM`
Great call! I'm going to do a followup more advanced crewai flows tutorial soon and I'll be sure to use the right one in the next video!
Brandon, just wondering. What if you want to use something like a vector store as the repository for your book. Would you just change the researcher to use the vector store instead of the Internet?
Exactly! You would just give your Researcher a different tool. Instead of a search the internet tool, you'd give them a query a vector store tool.
Good luck! Let me know if you need help with anything else!
Thank you, Brandon, for this fantastic tutorial! I’m curious if this augmented CrewAI still lacks the Cycles feature that LangGraph is known for, which loops back to the previous node for self-reflection?
hey! I’m so glad you brought that up! You can definitely do cycles for self reflection with flows!
there is an example over on our website where you can set up a feedback loop with human in the middle. Here is the link to the example.
github.com/crewAIInc/crewAI-examples/tree/main/lead-score-flow
Also, you bring up a really good point about auto self reflection so I will go update and add an example to the docs right now!
Hey! I just created a new example in the crewAI docs and my next RUclips deep dive into flows with cycles.
Here's the link in the mean time:
github.com/crewAIInc/crewAI-examples/tree/main/self_evaluation_loop_flow
Thank you for calling this out!
Thanks for the detailed example. This is Great. How can i have a fixed chapter list for a book? I want each book to be with same structure, can u define the list of chaptters as a fixed value instead of using a crew to generate that?
Awesome question!
The simplest solution would be to update the chapter outline generator crew to say please generate a chapter outline in this format:
[Insert Format Here]
----
Or, you could add the chapter list as a fixed value in the `state` of the flow.
I hope that helps! Please let me know if you have any followup questions!
@@bhancock_ai so what you are suggesting is to override the outline_book_crew and set it as fixed values like this: chapters=[1. intro 2.{} 3.{}... X.summary]? did i understood you correctly?
Very interesting and informative.
Is it normal for the Flow or CrewaI to take long time to initiate. What factors are to be considered in terms of performance. Is Crew AI slower then langgraph?
Awesome sir
Change the channel name to “First thing First” 🤣
I do kinda say that a lot 😂
Help??!
> sudo pip3 install crewai
Could not find a version that satisfies the requirement crewai (from versions: )
No matching distribution found for crewai
4.18.0-305.el8.x86_64
Hey! I'd recommend to u[date to the latest version of crewAI which is currently 0.76.2. Please let me know if you run into the same issue after updating versions!
how are your teeth so white brandon