I assume that you are not a developer, otherwise you would have gone already to take a look at the API website.
https://interactivebrokers.github.io/tws-api/introduction.html
If you want to automate your trading strategy without writing any code, look for "no-code" solutions. There are many available. You will be presented a graphical UI with some sort of boxes and arrows where you can set your workflows and triggers based on dynamic values.
Yes I'm not a developer, for the instructions I've seen, I'm using the ib sample, currently only paper trading to try out the strategies