> ## Documentation Index
> Fetch the complete documentation index at: https://docs.morf.health/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# AI Text Generation

Unlock instant, context-aware text generation using Morf's [AI Prompt to Text](https://docs.morf.health/docs/actions/morf/v1/ai_prompt_to_text.md) action directly in your automation. Configure the node's prompts, and use data from the event, the profile and outputs from earlier steps as context to automatically generate the text you need, right when you need it. Use the output in downstream nodes to...

* generate **structured summaries** from form responses and populate visit notes in your EHR
* send personalized **follow-up or reminder texts** to patients that write themselves
* capture high-level **appointment takeaways** in your EHR to automate the creation of appointment follow-up tasks for staff
* ...plus anything else you can dream up!

![Send custom appointment confirmation texts to patients following an appointment scheduled event.](https://mintcdn.com/morfhealth/4zxfvotdFqBvkrFr/images/ai_prompt_to_text_workflow.png?fit=max\&auto=format\&n=4zxfvotdFqBvkrFr\&q=85\&s=27595f1886710e4a8aa879e18d06e187)

### Get started

To begin using AI generated text in Morf:

1. Add the [AI Prompt to Text](https://docs.morf.health/docs/actions/morf/v1/ai_prompt_to_text.md) node to your workflow when you want text generated.
2. Give the node a descriptive object name (i.e. `appointment_summary` or `confirmation_text` ). You’ll use this object name when referencing the output in downstream nodes.
3. Map the Prompts parameter to an array. Add all prompts as static values in individual array entries. The number of prompts will not change the response format — one text string is generated per node.
4. To use the AI generated text later in the workflow, reference the node's `response` (i.e. `appointment_summary.response` , `confirmation_text.response` ).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.