githubEdit

AI Agent & AI Action in Flows

Power your flows with intelligence; choose between full agent logic or quick single-step actions.

  • When you log in through live.fastn.aiarrow-up-right into your Fastn account, navigate to Flows and create a new flow by clicking on Create Flow.

Fastn Flows page with the Create Flow button

Building your AI Agent On Chat Request

  • Select the starting point for your flow. For example, if you want to build your AI agent in Fastn through chat message, select On Chat message, name your flow, and click on Build to start.

Flow starting point selection with On Chat message option highlighted
  • Click on the "+" symbol within your Flow canvas.

  • In the component search bar, type “AI Agent” and select it.

  • In the AI model section, select an AI model of your choice.

  • Next, from the model dropdown, choose the AI model best suited for your use case (e.g., Gemini 2.0).

  • Under the Prompt section, define the input the agent should use, for example: {{input.chatInput}}

  • Adjust your Session ID, Memory Table Name, and Memory Content Limit as required.

  • Click Save to confirm your configuration.

circle-info

The Fastn AI Agent is in the beta category and under trial.

AI Agent configuration panel with model selection, prompt input, and memory settings
  • You will now need to get into the loop of your connected AI Agent to select your apps to connect and set up necessary actions.

  • Select your desired app by searching for it in the Connector and connecting your account.

Example Use Case: Fetching Your Contacts From Intercom

  • Select the Intercom Connector and endpoint Get Contacts in this case, and click Next.

Intercom connector selected with Get Contacts endpoint
  • In the next Connect section, connect your Intercom account to Fastn. Configure your action in the next step, and you will then see the Get Contacts action connected in your Flow.

Get Contacts action connected in the AI Agent flow canvas
circle-info

Inside each connected tool, you can add or delete individual parameters and map them to input values that are static or defined automatically by the model, as shown below. You can learn more about data mapping from Data Mapping in Flows

Tool parameter configuration with mapped input values inside the connected connector
  • Go to the Chat option in the top-right corner of the screen.

Chat option button in the top-right corner of the flow editor screen
  • Type the prompt you want to execute.

  • The chatbot will process your request. You’ll receive the result showing the contacts along with details such as when each contact was created.

Chat response showing retrieved Intercom contacts with creation date details

AI Action

AI Action is your tool in Fastn to trigger action in your connected apps based on a single prompt without any model selection or complex flows.

Building your AI Action on API Request

  • Select the starting point for your flow. For example, if you want to trigger any task in Fastn through an API request for seamless system integration, select On API Request, name your flow, and click on Build to start.

Flow starting point selection with On API Request option highlighted
  • Inside the flow search and add the AI Action flow component.

Adding the AI Action component from the flow component search bar
  • In the AI Action connector, click on Add Actions to select relevant apps for connection and to update the necessary actions [functionalities] for your task.

AI Action connector panel with Add Actions button for selecting apps

Example Use Case: Sending a Message to your Slack Channel

  • Search for the Slack Connector and enable the Send Message Action after authenticating your Slack account.

circle-info

Your connector will appear as Connected after successful authentication.

Slack connector with Send Message action enabled and account connected
  • You can now write a simple prompt with the message you want to send with the Channel Name e.g,

  • Click Save and test run your flow by clicking Test from the top-right corner.

circle-info

You can deploy the flow to any of your selected environments to go LIVE.

AI Action flow with prompt configuration and Test button in the top-right corner
  • You will now see your flow ran successfully and the message would be sent to the respective Slack channel.

Successful flow execution result showing the Slack message was sent
Slack channel displaying the test message sent by the AI Action flow

Last updated

Was this helpful?