Endpoints in Python Script

This small code lets me chat with the bot in a terminal. I am getting an error because my endpoints are not configured in this code for my custom actions. I want to know how do I write the command to get rid of this error?

You need to setup an action server with an action named action_abbreviation_search. You will find the documentation on this at Actions