Skip to main content
Back to Actions Integrations Use prebuilt Bitly action templates to auto-create dialog tasks. Prerequisites: Configure Bitly and install templates before proceeding. Navigate to Automation AI > Use Cases > Dialogs, then click the auto-created dialog to open the canvas.

Supported Actions

ActionDescriptionMethod
Short an URLShortens any long URLPOST

Shorten a URL

  1. Install the template from Bitly Templates.
  2. The Short URL dialog task is added with: Dialog task added
    • shortUrl – User intent to shorten a URL.
    • longURL – Entity node to enter a long URL.
    • shortUrlService – Bot action service to shorten the URL. Click Edit Request: Request Sample Request:
      {
        "long_url": "https://en.wikipedia.org/wiki/Constantine_V"
      }
      
      Click +Add Response to add sample responses: Add Response Sample Response:
      {
        "created_at": "2023-08-25T08:38:00+0000",
        "id": "bit.ly/3E8Nec6",
        "link": "https://bit.ly/3E8Nec6",
        "custom_bitlinks": [],
        "long_url": "https://en.wikipedia.org/wiki/Constantine_V",
        "archived": false,
        "tags": [],
        "deeplinks": [],
        "references": {
          "group": "https://api-ssl.bitly.com/v4/groups/Bn448WZsE7j"
        }
      }
      
    • generalQueryMessage – Message node to display the shortened URL.
  3. Click Train to complete training.
  4. Click Talk to Bot to test.
  5. Enter a long URL when prompted. Enter long url
  6. The URL is shortened. Click View Stats to see URL statistics in Bitly. View Stats