Triggering FlowHunt AI agents via rules

Alongside our native AI features, FlowHunt users have the ability to implement various AI agents, either selected from the library, or custom built ones, which can perform a range of tasks and automations. FlowHunt AI agents can be triggered from LiveAgent via rules, listening for various in-panel actions such as a the creation of a new ticket, a new message in a ticket, addition of a tag to a ticket, and more.

FlowHunt AI agents might have access to your database or internal sources, connect multiple platfroms within a single flow, and utilize LiveAgent's and other softwares API to assist your with daily tasks. This way, FlowHunt AI agents can work with your tickets in LiveAgent or execute workflows externally, even when there isn't a native function within LiveAgent to meet your specific requirements at the moment.

FlowHunt, our no-code AI automation platform, is a product of our company, Quality Unit, like LiveAgent. By utilizing our AI features with FlowHunt, we ensure data safety and offer priority support. For customers with active LiveAgent & FlowHunt subscriptions, our support team offers a full initial setup of our LiveAgent AI features or FlowHunt AI automations.

Setting up the rule

To set up a rule to trigger a FlowHunt AI agent, navigate to Configuration > Automation > Rules or Time Rules, and click on the "+ Create" button. As the action of your rule use "HTTP request":

The trigger of the rule and its conditions depend on your requirements when to execute the HTTP request to trigger the FlowHunt AI agent.

  • URL:

    https://api.flowhunt.io/v2/flows/{AgentId}/invoke?workspace_id={WorkspaceId}
  • Enable SSL check - Yes
  • HTTP Method - POST
  • HTTP Headers:

    content-type: application/json
    Api-Key:{APIkey}
  • HTTP Body:

    {"human_input":{$conv_conversationid}}
  • Encoding - JSON Encoded

Make sure to replace {AgentId}, {WorkspaceId}, and {APIkey} sample variables with actual values from your FlowHunt account.

Finding FlowHunt AI agent ID and workspace ID

To find the AI agent ID and workspace ID values that are required in the rule, navigate in your FlowHunt account to My Agents and search for the AI agent you'd like to trigger via your LiveAgent rule. The ID of the AI agent is noted below its name.

The workspace ID can be found in the URL address of your browser tab with the FlowHunt panel, available as the ws= URL parameter value, before the &filter= parameter (if present).

Creating an API key

To create a FlowHunt API key, navigate in the menu to Settings. In the Workspace Settings screen, go to the "API Keys" tab, and click on the "+ Add API Key" button. Name your new API key and click on the "Add API Key" button. Once you have created the new key, it will be displayed on the screen.

Ensure that you've copied the API key correctly and keep it safe, as you won't be able to view it again. If you lose the key, you'll need to generate a new one.

You can use the same API key to also integrate FlowHunt as an AI provider to utilize our native AI features via it.

Other Articles

×