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

# Using the Confluence Action Templates

[Back to Actions Integrations](https://koreai.mintlify.site/ai-for-service/integrations/overview.md#actions)

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

**Prerequisites:** Configure [Confluence](https://koreai.mintlify.site/ai-for-service/integrations/actions/configuring-the-confluence-action) and [install templates](https://koreai.mintlify.site/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](https://koreai.mintlify.site/ai-for-service/integrations/actions/configuring-the-confluence-action#step-2-install-confluence-action-templates).

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

   ![Dialog added](https://mintcdn.com/koreai/7TeKpNFD7QJEMcMu/ai-for-service/integrations/actions/images/confluence-action-img14-tem-img4.png?fit=max\&auto=format\&n=7TeKpNFD7QJEMcMu\&q=85\&s=2e66459eaf0a856bdc3f402a607fa935)

   * **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**:

     ![Request](https://mintcdn.com/koreai/I4CfGjCj6W3ljkoZ/ai-for-service/integrations/actions/images/confluence-tem-img5.png?fit=max\&auto=format\&n=I4CfGjCj6W3ljkoZ\&q=85\&s=8e529e3356e4881d321e45a5399f5a86)

     **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**:

     ![Response](https://mintcdn.com/koreai/I4CfGjCj6W3ljkoZ/ai-for-service/integrations/actions/images/confluence-tem-response-img5.png?fit=max\&auto=format\&n=I4CfGjCj6W3ljkoZ\&q=85\&s=e9718016bc0409eb8d42d684ecf49470)

     **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.

   ![VA console prompt](https://mintcdn.com/koreai/I4CfGjCj6W3ljkoZ/ai-for-service/integrations/actions/images/confluence-tem-img6.png?fit=max\&auto=format\&n=I4CfGjCj6W3ljkoZ\&q=85\&s=b62917ab7dda5435be76a1436e911517)

6. Enter title and body details when prompted.

   ![Enter title and body](https://mintcdn.com/koreai/I4CfGjCj6W3ljkoZ/ai-for-service/integrations/actions/images/confluence-tem-img7.png?fit=max\&auto=format\&n=I4CfGjCj6W3ljkoZ\&q=85\&s=1cb6bdf943ca53ab19f53c28329562b4)

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

   ![Content created](https://mintcdn.com/koreai/I4CfGjCj6W3ljkoZ/ai-for-service/integrations/actions/images/confluence-tem-img8.png?fit=max\&auto=format\&n=I4CfGjCj6W3ljkoZ\&q=85\&s=e37c16188af9a808c830fd485a918f4b)

8. View the page in Confluence.

   ![View page](https://mintcdn.com/koreai/I4CfGjCj6W3ljkoZ/ai-for-service/integrations/actions/images/confluence-tem-img9.png?fit=max\&auto=format\&n=I4CfGjCj6W3ljkoZ\&q=85\&s=16c9e271f9ae4e145cc489b8366c2e2e)


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