Build your webform, or Form api form, grab its ID and then follow [my answer][1] to insert this form into node's content through a custom module of yours 

Cleaner way to do it.


  [1]: https://drupal.stackexchange.com/a/60024/10666