> ## Documentation Index
> Fetch the complete documentation index at: https://koreai-ai-for-process-dev.mintlify.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Using the Confluence Action Templates

<Badge icon="arrow-left" color="gray">[Back to Actions Integrations](/ai-for-service/integrations/overview#actions)</Badge>

Use prebuilt Confluence action templates to auto-create dialog tasks.

**Prerequisites:** Configure [Confluence](configuring-the-confluence-action.md) and [install templates](configuring-the-confluence-action.md#step-2-install-confluence-action-templates) before proceeding.

Navigate to **Automation AI > Use Cases > Dialogs**, then click the auto-created dialog to open the canvas.

***

## Supported Actions

| Action         | Description                             | Method |
| -------------- | --------------------------------------- | ------ |
| Create Content | Creates content in the Confluence space | POST   |

***

## Create Content

1. Install the template from [Confluence Templates](configuring-the-confluence-action.md#step-2-install-confluence-action-templates).

2. The *createContent* dialog task is added with:

   <img src="https://mintlify.s3.us-west-1.amazonaws.com/koreai-ai-for-process-dev/ai-for-service/integrations/actions/images/confluence-action-img14-tem-img4.png" alt="Dialog added" />

   * **createContent** - User intent to create content in the Confluence space.

   * **contentType**, **spaceKey**, **contentTitle**, **contentBody** - Entity nodes for content details.

   * **getResourceIdService** - Bot action service to fetch the resource ID. Click **Edit Request**:

     <img src="https://mintlify.s3.us-west-1.amazonaws.com/koreai-ai-for-process-dev/ai-for-service/integrations/actions/images/confluence-tem-img5.png" alt="Request" />

     **Sample Request:**

     ```json  theme={null}
     {
       "title": "Page 1",
       "type": "page",
       "space": { "key": "SFPWP" },
       "status": "current",
       "body": {
         "storage": {
           "value": "Here is the value of this body",
           "representation": "storage"
         }
       }
     }
     ```

     Click **+Add Response**:

     <img src="https://mintlify.s3.us-west-1.amazonaws.com/koreai-ai-for-process-dev/ai-for-service/integrations/actions/images/confluence-tem-response-img5.png" alt="Response" />

     **Sample Response:**

     ```json  theme={null}
     {
       "id": "21004299",
       "type": "page",
       "status": "current",
       "title": "Page 1",
       "space": {
         "id": 196612,
         "key": "SFPWP",
         "name": "Space For Playing with Postman",
         "type": "global",
         "status": "current"
       }
     }
     ```

   * **createContentService** - Bot action service to create content in the Confluence space.

   * **createContentMessage** - Message node to display the result.

3. Click **Train** to complete training.

4. Click **Talk to Bot** to test.

5. Follow the prompts to create content.

   <img src="https://mintlify.s3.us-west-1.amazonaws.com/koreai-ai-for-process-dev/ai-for-service/integrations/actions/images/confluence-tem-img6.png" alt="VA console prompt" />

6. Enter title and body details when prompted.

   <img src="https://mintlify.s3.us-west-1.amazonaws.com/koreai-ai-for-process-dev/ai-for-service/integrations/actions/images/confluence-tem-img7.png" alt="Enter title and body" />

7. Content is created. Click **View Content** to open it.

   <img src="https://mintlify.s3.us-west-1.amazonaws.com/koreai-ai-for-process-dev/ai-for-service/integrations/actions/images/confluence-tem-img8.png" alt="Content created" />

8. View the page in Confluence.

   <img src="https://mintlify.s3.us-west-1.amazonaws.com/koreai-ai-for-process-dev/ai-for-service/integrations/actions/images/confluence-tem-img9.png" alt="View page" />


Built with [Mintlify](https://mintlify.com).