Chat () issue in rasa.jupyter (Jupyter Notebooks)

Hi, I followed this link https://rasa.com/docs/rasa/api/jupyter-notebooks/ for creating a chatbot .

from rasa.jupyter import chat

chat(model_path)

I encountered an error :

NameError Traceback (most recent call last) in from rasa.jupyter import chat chat(model_path)

~/anaconda3_501/lib/python3.6/site-packages/rasa/jupyter.py in chat(model_path, agent, interpreter) 32 33 unpacked = model.get_model(model_path) -> 34 agent = create_agent(unpacked) 35 36 elif agent and interpreter:

~/anaconda3_501/lib/python3.6/site-packages/rasa/run.py in create_agent(model, endpoints) 77 ) 78 -> 79 return Agent.load( 80 model, 81 generator=_endpoints.nlg,

NameError: name ‘Agent’ is not defined

Rasa version - 1.4.3

No agent related information is defined in the jupyter notebook documentation What will be the solution? Thanks in advance!

Thanks for pointing this out! Looks like the documentation for the jupyter notebooks is still on rasa 1.1.5 :dizzy_face: I’ll make an issue to get it up-to-date, but can’t promise it will get updated super soon.

In the meantime, if you specifically want to do it in a notebook, I recommend installing 1.1.5. Can I ask why you prefer to do it in the notebook instead of with the simple rasa train and rasa shell CLI commands?

Thanks for the recommendation, Actually, I did it in CLI but I just wanted to know how to work with the notebooks as well.

After installing 1.1.5, it works well!