Integration with workflows
To make your AI agent respond to messages from the Terminal Widget, you need to configure its workflow.
Add Workflow Trigger: In your Loomlay Agent Builder, for the agent you linked via uuid in the widget code:
Add a new workflow trigger.
Select the trigger type: "New Message: Terminal".
Configure Workflow: Design the rest of your agent's workflow as needed. The agent's final output or the step "instructed to finish" will be sent back as a response to the user in the Terminal Widget.
Live Message Routing: Once configured, new messages sent by users through the Terminal Widget on your webpage will be automatically routed to this workflow, and the agent's responses will be displayed live in the terminal.
Last updated