Your question is akin to asking "I have this story I want to write. How do I know which words to use?"
There is no answer. You have to consider what tools you have, what they do, what you need to accomplish, and figure out yourself how to get to your goal using those tools.
If a method existed to do this, we would already have programmer AIs.