This section presents a set of Docs API sample applications and
utilities that demonstrate how to translate an intended Google Docs action
into an API request.

- [Output document contents as JSON with
  Docs API](https://developers.google.com/workspace/docs/api/samples/output-json): Outputs a JSON dump of
  the complete contents of a document. This can help you understand the
  structure of Docs files or troubleshoot issues.

- [Extract the text from a document with
  Docs API](https://developers.google.com/workspace/docs/api/samples/extract-text): Extracts only the text
  from a document. This is especially useful for passing the text to another
  service.

- [Mail merge with Docs API](https://developers.google.com/workspace/docs/api/samples/mail-merge): Mail
  merge documents from a template with data from Google Sheets or plain
  text.

## Codelab

[Create a transcript of your business meetings using Google Docs \& Machine
Learning](https://codelabs.developers.google.com/codelabs/docs-ml-transcript#0):
In this codelab, you'll learn how to send an audio file through the [Google Cloud Speech-to-Text API](https://cloud.google.com/speech-to-text/),
then output the transcript to a Google document. The Speech-to-Text API is
easy-to-use and applies a powerful neural network to enable developers to
convert audio to text. Plus, it's powered by Machine Learning.