Publishing the AI Agents
- Navigate to AI Agent Studio
- Edit the in AI Agent to be published.
- Navigate to Agent Team Settings
- Go to Security tab and click Add -> Add the desired role that should have access to this agent.
- Ensure the above role has the runtime duty privilege.
- Click Update to save the settings.
- Click Publish button
- Confirm the publish action in the popup
- Once published, we should see the confirmation message
- To access the published agent, navigate to Home
- Navigate to Me -> AI Chat
- Navigate to Explore tab.
- We should see our published agent here.
- Click on the agent to start interacting with it.
Embedding the AI Agents in Redwood pages using Guided Journey
Let's see the steps to do this.
- Click Show More and locate Journeys Setup and open it
- Open Guided Journey
- Let's create a new Guided Journey for our agent
- Under Tasks section, add a Task of type Agent
- Pick Workflow Agent (do not pick RAG Agent)
- Select the desired workflow agent - 'O2C Conversational AI ERP Assistant' in our case
- Activate the journey and copy the agent code from the guided journey preview.
- I'm embedding my AI Agent in 'Order Management' home page.
- Under the page properties, search for 'Journey Code' and paste the agent code (from previous step) into the “My Journey Code” property.
- Paste the task code (from previous step) into the "Task Codes" property.
- Click the preview button
- This will open a new page showing the actual redwood page (Order Management homepage in our case), and we should see our AI Agent appearing on the top of the page.
- Navigate back to the Visual Builder tab and click Publish.
- This will us show a popup with the summary of the changes made. Enter a description/message to describe the change being made (this ia mandatory). Click Publish to confirm.
- In the end, we will be presented with a confirmation message about the successful completion of these configurations.
Let's test it!
- Navigate back to Home
- Go to Order Management
- We should see our custom AI Agent on the top of this page.
- Click the 'Ask Oracle' button.
- This should bring up our custom AI Agent, and we can start interacting with the same.
With this, we've covered the typical methods of publishing an AI agent as well as embedding them into the Redwood pages.