NameError: name 'crew' is not defined

Hi, I 've just started with L2: Create Agents to Research and Write an Article but ran into a problem, when trying to run the code in the first example i get an error in Jupyter

topic = “Artificial Intelligence”
result = crew.kickoff(inputs={“topic”: topic})

NameError Traceback (most recent call last)
Cell In[3], line 2
1 topic = “Artificial Intelligence”
----> 2 result = crew.kickoff(inputs={“topic”: topic})

NameError: name ‘crew’ is not defined

This should hve been straight forward not? What am I missing?

Thanks

hi @mrmagic22

can you share a screenshot of the complete error.

Thank you
DP

Did you run the cell that imports the “Crew” package?
And did you run the cell that creates the “crew” object?

Every time you open a notebook, you should run all of the cells starting from the top, until you reach the cell you are working on.

Oh I did not do this I’m using Jupyter for the first time.
Sorry I will try again
Thanks

2 Likes