How to extract any input from bot

I want to input part number from the bot. part no can be of any format the bot is running in oop how can I do that if user enters anything it should directly go to actions.py right now it is getting confused and running in loop. Your input → hi ? Hi, I’m here to assist you! 1: Part (/part) ? What can I help you with? 1: Check Part Availability (/check_part_av ailability) Please provide the part number. Your input → part345 ? What can I help you with? (Use arrow keys) » 1: Check Part Availability (/check_part_availability) 2: Part Price and Cost Check (/check_price_part_and_cost) Type out your own message… the part no can be anything …Please help