> For the complete documentation index, see [llms.txt](https://doc.botpot.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.botpot.ai/fundamentals/get-action.md).

# Get action

The `Get Action` function is what a user will code up, which dictates how the bot will run.&#x20;

The function takes `game state` and `api` as inputs. The game state describes the state of the world. The API object contains helpful methods to make coding easier.

The function should return an `action object`, which is the action the bot wishes to perform on its turn.
