Able to read a list from external word file or excel sheet?

I want the response to be based off a list presented either in a word file (like .txt) or an excel sheet (.xlsx or .csv).
Is there a way for ChatGPT to comprehend?

Should I include some code to read these files within the python in the jupyter notebook?

Or is the best way to include all that information directly within the text prompt in the jupyter notebook?

This is something that may be achievable using LangChain, a framework that expands the API functionality of ChatGPT. It has support for processing tabular data and other outside sources, so I recommend looking into it: Latest Short Courses/LangChain for LLM Application Development topics - DeepLearning.AI