Automake forum on node creation with rules
There is no need for any custom php here. Just the below steps.

In Rules actions,


Action 1: "Create a new entity > Taxonomy term"
Enter your title based on the created node and put it in the forum taxonomy
Action 2: "Set a data value > [entity-created:parent], Value: 194"