#
URL Aliases
#
Concepts
What is URL Alias?
A URL Alias is a custom, stable name that acts as a reference to a specific Agent and Agent Version. It functions as a bridge between your external applications and the Purple Fabric’s agents.
Why use URL Aliases?
Agents are frequently modified and updated, creating new version IDs. Without an alias, every time you modify an agent to a new version, you would need to manually update the API endpoints in every application that integrates with it.
URL Aliases enables you to decouple the integration URL from the specific agent version.
Key Benefits:
- Seamless Transitions: When you modify an agent, you can simply update the alias to point to the new version. Your third-party applications continue to work without any code changes.
- Stable Integration: Your API endpoints remain constant, using the Alias Name rather than a changing Asset ID.
URL Aliases can only be created for Automation agents and not Conversational agents.
#
How-To Guide
#
Accessing URL Aliases
- Log in to the platform.
- Navigate to the Admin module.
- Click on the URL Aliases component.
- You will see a list of existing aliases displaying: Alias Name, Mapped Agent, Agent Version, Modified At, and Owner.
#
Creating a New Alias
- Click the Create new button.
- Alias Name: Enter a unique name for your alias (Min 6, Max 20 characters).
- Note: Alphanumeric characters and basic special characters are allowed.
- Mapped Agent: Select the specific Agent you wish to map.
- Agent Version: Select the specific version of the agent you want this alias to use.
- Click Submit to save.
#
Updating an Alias (Modifying Agents)
Scenario: You have modified your agent and want your live application to use the new version.
- Click on the specific URL Alias name in the list.
- This will open the Alias Detail Page.
- Click the Edit button.
- Change the Agent Version dropdown to the new desired version.
- Click Submit.
Result: Any application calling this alias will now immediately interact with the new version.
#
Downloading API Specifications
To integrate the aliased agent into a third-party application, you need the OpenAPI specification for the specific version mapped to the alias.
- Click on the URL Alias in the list to open the Detail Page.
- Locate the menu (three vertical dots) and click Download API.
This will download the API specification specifically for the version currently mapped to this alias in JSON format.
#
Deleting an Alias
- Click on the URL Alias in the list to open the Detail Page.
- Locate the menu and select the Delete option.
The selected URL Alias is deleted
#
FAQs
Q: Can I rename an alias after I create it?
A: No. Once an alias is created, the name is fixed to ensure link stability. If you need a different name, you must delete the existing alias and create a new one.
Q: Who can create or edit aliases?
A: Standard Users and Tenant Admins can create and edit aliases.
Q: What happens if I modify an agent version while an alias is pointing to it?
A: The alias points to a specific Version ID. If you modify an agent, a new Version ID is usually created. You must go to the Alias settings and update it to point to the new version for the changes to take effect in your integration.
Q: Can we create URL aliases for all kinds of agents?
A: URL Aliases are only applicable to Automation agents and not Conversation agents.
#
Troubleshooting
#
Limitations
- Asset type: URL Aliases are only applicable to Automation agents and not Conversation agents.