This is ambiguous. You probably won't get much help unless you clarify.
Do you mean...
"How do I create a function that uses decisions I make?",
"How do I use an arbitrary function in the process of decision making?",
"How do I create a function that helps in the process of decision making?"