Skip to main content

Document Pages in Automations

Read and generate Planhat Document Pages in Custom Automations

Julia Sommarlund avatar
Written by Julia Sommarlund
Updated this week

Summary

  • Planhat Document Pages can be created or read in Custom Automations

  • When creating a Document Page via an Automation, the general access can be set to public or private and set to "View" or "Edit"

  • Documents can be read or created in multiple output formats: text, markdown, HTML, or PH Doc / JSON

Who is this article for?

  • Planhat Users who are building Custom Automations for their organization and would like to read or create Planhat Document Pages

Series

This article is part of a series on Automations:


Article contents

This is a technical deep-dive article

Read on if you'd like to learn about reading and creating Document Pages via Automations. Ensure you read our article on Custom Automations before this one, so you are familiar with the context of where Documents can be used in Custom Automations.

If you would simply like a general introduction to Automations, check out our overview article here.


What are Document Pages and where can they be used in Automations?

Documents are a type of Page in Planhat, which support a wide variety of text formatting options, embedding tables, images, videos, attachments. You can read more about Document Pages in general in our separate article here.

Document Pages can be used in two different places in Automations,


Why use Document Pages in Automations?

Document Pages in Custom Automations have a range of different use cases, where:

  • reading Document Pages provides information to an Automation, and

  • creating Documents is a way of getting a structured output from an Automation in an easy-to-read form.

Since Document Pages don't have to belong to a specific record (e.g. a particular Company) in Planhat, it's a great way of running cross-portfolio analysis.

Examples of use cases:

  • When running an Automation to prepare for a QBR, include your Document Page on "Best practices for QBRs" as context. Let an LLM use an AI step [link to article] to create your plan for the QBR.

  • Create a weekly priority Document Page for yourself to prepare for your upcoming meetings this week. Make sure to include information on your upcoming tasks, the associated Companies, and anything else that's relevant.

  • Create a cross-portfolio issue analysis, going through open issues and support tickets to understand which friction points are reoccurring across your portfolio.

  • Run a risk analysis across your portfolio: use AI to understand what risks are most prominent for the Companies you manage, and generate a game plan to tackle these risks.

This is an example of how to create a Portfolio issue analysis documents in Automations


How to create Document Pages via Automations

Document Pages can be created in Custom Automations using a "Create" step.

  1. Choose "Create", and set "Object" to "Document"

  2. Input required fields: "Owner" (use the picker, or use replacement codes dynamic references) and the "Name" of the Document Page

  3. Set optional fields:

    1. "Content": This is the actual content for the Document Page. If you'd like to reference the output from an AI step, use a replacement code (dynamic reference) and input the specific step name, e.g. <<Step 1>>.

    2. "Page available for whole team": If this is disabled, only the Owner can see the Page. When enabling this, the Document can be discovered by everyone in your Planhat tenant

    3. "General access": Determines if everyone in Planhat is a Viewer or Editor of the Document (which only applies if "Page available for whole team" is enabled)


How to read Documents in Automations

  1. To use the contents of a Document Page within a Custom Automation, you read the Document by using a "Get" step. Multiple Document Pages can't be read at once, so set "Object" to "single" "Document"

  2. Specify the "id" of the Document Page that should be read. You can find the Document Page id as the last part of the URL when looking at the Document in Planhat

  3. Define in what format the Document content should have - options are: HTML, markdown (MD), text, PH Doc / JSON

Did this answer your question?