Want to create AI chatbot apart from story-based reponses

I want to create a AI chatbot project who can answer question related to topics and chapters in a pdf book and also do conversational chats. If i will create story based, then i have to create so many combinations of stories. So i want to create AI bot that can handle any types of intents and its actions randomly not as per sequential story based.

If it possible then please suggest me.

Do you already have a library for that? In my experience that part is really hard, because pdf is a printing format, you get tons of errors trying to read one.

That can be done if you put your FAQ in a mysql database and do a text search.

After you solve those problems, you still need to classify them as intents and either write a story that uses them or use triggers for the mapping policy.