Here are three scripts that let you build a document from user prompts, import Google Analytics into a Google Doc report, and create a document from a Google Sheet file.

Source: 3 Impressive Google Docs Scripts to Automate Your Documents

For forms in Google Docs we’ve been using autoCrat but there are use cases where script 1 in the article would work a lot better.