> ## Documentation Index
> Fetch the complete documentation index at: https://koreai-content-gov.mintlify.site/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](/ai-for-service/integrations/actions/configuring-the-confluence-action) and [install templates](/ai-for-service/integrations/actions/configuring-the-confluence-action#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](/ai-for-service/integrations/actions/configuring-the-confluence-action#step-2-install-confluence-action-templates).

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

   <img src="https://mintcdn.com/koreai-content-gov/VYRKChaiPUrorkDG/ai-for-service/integrations/actions/images/confluence-action-img14-tem-img4.png?fit=max&auto=format&n=VYRKChaiPUrorkDG&q=85&s=2e289693083b280eadbaa57120096228" alt="Dialog added" width="1482" height="903" data-path="ai-for-service/integrations/actions/images/confluence-action-img14-tem-img4.png" />

   * **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://mintcdn.com/koreai-content-gov/VYRKChaiPUrorkDG/ai-for-service/integrations/actions/images/confluence-tem-img5.png?fit=max&auto=format&n=VYRKChaiPUrorkDG&q=85&s=7adddb79b4578d8bd95c686be844f494" alt="Request" width="1919" height="908" data-path="ai-for-service/integrations/actions/images/confluence-tem-img5.png" />

     **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://mintcdn.com/koreai-content-gov/VYRKChaiPUrorkDG/ai-for-service/integrations/actions/images/confluence-tem-response-img5.png?fit=max&auto=format&n=VYRKChaiPUrorkDG&q=85&s=32434f608368faaf764531fdfabe03e7" alt="Response" width="1919" height="793" data-path="ai-for-service/integrations/actions/images/confluence-tem-response-img5.png" />

     **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://mintcdn.com/koreai-content-gov/VYRKChaiPUrorkDG/ai-for-service/integrations/actions/images/confluence-tem-img6.png?fit=max&auto=format&n=VYRKChaiPUrorkDG&q=85&s=036743a315ad2127482d5a838eae8dc6" alt="VA console prompt" width="598" height="833" data-path="ai-for-service/integrations/actions/images/confluence-tem-img6.png" />

6. Enter title and body details when prompted.

   <img src="https://mintcdn.com/koreai-content-gov/VYRKChaiPUrorkDG/ai-for-service/integrations/actions/images/confluence-tem-img7.png?fit=max&auto=format&n=VYRKChaiPUrorkDG&q=85&s=d87f5df54c4d662d04587ddc269ae330" alt="Enter title and body" width="593" height="689" data-path="ai-for-service/integrations/actions/images/confluence-tem-img7.png" />

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

   <img src="https://mintcdn.com/koreai-content-gov/VYRKChaiPUrorkDG/ai-for-service/integrations/actions/images/confluence-tem-img8.png?fit=max&auto=format&n=VYRKChaiPUrorkDG&q=85&s=467aa2d8f63fcf5d35fc8924c6fda2de" alt="Content created" width="604" height="827" data-path="ai-for-service/integrations/actions/images/confluence-tem-img8.png" />

8. View the page in Confluence.

   <img src="https://mintcdn.com/koreai-content-gov/VYRKChaiPUrorkDG/ai-for-service/integrations/actions/images/confluence-tem-img9.png?fit=max&auto=format&n=VYRKChaiPUrorkDG&q=85&s=cd65635af444bc3fa59d7631796c6ea0" alt="View page" width="1893" height="907" data-path="ai-for-service/integrations/actions/images/confluence-tem-img9.png" />
