LLM
  • Overview
    • LLM
  • Key Concepts
    • Models
    • Key Concepts
  • Quckstart
    • Jan.ai
    • 🦙Ollama & Chatbox
  • Playground
  • Workflows
    • n8n
    • Flowise
      • Basic Chatbot
      • Research Agent
      • Company Information Agent
      • PDF Parser
      • Knowledge Base
      • Lead Gen
    • Agno
  • LLM Projects
    • RAG + ChainLit
  • Model Context Protocol
    • Claude + MCPs
    • Flowise + MCPs
  • Knowledge Graphs
    • neo4j
    • WhyHow.ai
  • Setup
    • WSL & Docker
    • 🦙Quickstart
    • Key Concepts
    • Workflows
    • Model Context Protocol
Powered by GitBook
On this page
  1. Workflows
  2. Flowise

Lead Gen

PreviousKnowledge BaseNextAgno

Last updated 1 month ago

Flowise + Google Sheets - monitored by LangSmith

In this integration we're simply going to write the user interaction to a Google Sheet - LeadGen.

Google Sheet

  1. Create a folder named: Make

  2. Create a New Google Sheet named: Flowise-Webhook

  1. Rename Sheet 1 to: Notes

  2. Add the column headers: First Name | Surname | eMail | PhoneNumber | Conversation.

  1. Add a test entry:

First Name: Setup

Surname: Ignore

eMail: test@test.com

Phone Number: 1234567

Conversation: test message

Action: Ignore

Make.com

Make.com (formerly Integromat) serves as a powerful workflow automation platform that connects apps and services without requiring complex coding. It excels in creating sophisticated multi-step automation "scenarios" using its visual workflow builder.

A practical use case involves streamlining a lead management process. When a potential customer completes a form on your website, Make.com automatically captures this information, enriches it with additional data from sources like LinkedIn or ClearBit, segments leads based on predefined criteria, creates new contact records in your CRM, assigns appropriate team members, and triggers personalized email sequences—all without manual intervention.

This automation eliminates repetitive tasks, ensures consistent lead processing, reduces human error, and allows your sales team to focus on meaningful customer interactions rather than administrative work. The result is faster response times, improved lead conversion rates, and a more efficient sales process.

  1. Sign up for a Make.com account.

  1. Log In > Templates > Add webhook data to a Google Sheet.

  1. Click on: 'Start guided setup' to create our scenario.

  1. Create a webhook, and give it a name: Flowise-Webhook > Save

  1. Copy: address to clipboard


Why Data Structure Matters with Webhooks

Webhooks transmit data in specific formats (typically JSON), and the receiving system expects this data to be structured in a particular way to process it correctly. Without proper data structure, the webhook payload may be rejected or misinterpreted.

When sending data via webhooks, you need to match the exact field names, data types, and overall structure that the receiving API expects. For example, if a ticketing system requires a "priority" field as an integer (1-5), but you send it as a string ("high"), the webhook request might fail.

Additionally, well-structured webhook data improves debugging and monitoring. When issues arise, having consistent, predictable data formats makes it easier to identify where problems occur in your integration.

Many webhook destinations also implement validation rules that reject improperly structured payloads as a security measure, so adhering to the expected data structure is essential for successful integration.

Postman

Postman is a comprehensive API development and testing platform that helps developers build, test, document, and share APIs. It provides a user-friendly interface that simplifies the often complex process of working with APIs throughout their lifecycle.

At its core, Postman offers a powerful request builder that allows developers to craft HTTP requests with various methods (GET, POST, PUT, DELETE, etc.), add headers, parameters, and request bodies. The platform enables the creation of collections to organize related requests, making it easy to maintain and execute complex API workflows.

Postman's testing capabilities allow developers to write automated tests for API endpoints using JavaScript, ensuring reliability and consistency. The platform also includes features for API documentation, monitoring, mock servers, and team collaboration, making it an essential tool for development teams working with APIs in modern software development environments.

  1. Sign up for a Postman account.

  1. Download and install Postman.

xx

  1. Click on Collections > HTTP

  2. Paste the Flowise-Webhook link and create a POST request

  1. Enter the following:

Setting
Value

Body

RAW

Text

JSON

  1. Copy the following:

{
  "First Name":"This note was sent by Postman",
  "Surname":"Setup",
  "eMail":"test@test.com",
  "Phone Number ":"1234567",
  "Conversation":"test message",
  "Action":"Ignore"
}
  1. POST the Request. Check for a 200 OK Accepted.

  1. If you go back to your Webhook - Successfully determined

  1. Click: 'Continue'

  1. Ensure you have enabled the Google Sheets API for your account.

  1. Click: Create Connection > Enter Connection Name > Sign into your Google account.

  1. From the drop boxes navigate to the Google Sheet and Sheet Name.

  2. Next .. map the Webhook fields to the Google Sheet - drag & drop fields

  1. Click: 'Continue' to finish.

  1. Click: 'Run the Scenario'.

  2. Go back to Postman and POST the Request.

  3. Check your Google Sheet.

  1. If everything is fine, in Scenarios > Enable Scenario

  1. Finally .. Verify the Connection.

Chatbot

  1. Log into Flowise and create the following simple Chatbot.

x

x

xx

x

x

x

LangSmith

LangSmith is a developer platform created by LangChain to help build, test, evaluate, and monitor language model applications. It provides tools for debugging, optimizing, and managing LLM-powered applications throughout their lifecycle.

LangSmith offers features such as tracing to visualize application execution, dataset creation for systematic testing, human and automated evaluation frameworks, and monitoring capabilities to track performance in production.

  1. Sign up for a LangSmith account.

  1. Sign Up for a Developer account.

  1. Log in > Settings > API Key

  1. Create an API Key

Store the API Key in a safe place ..


Enable LangSmith for your Project

  1. In Flowise > Credentials > Langsmith API

  1. Enter the following details:

  1. Open the Chatflow: Simple Chatbot - Lead Gen

  2. Under Settings > Configuration > Analyze Chatflow

  1. Click Save.

  2. In the Chatbot run through the process of booking a call.

  3. Refresh LangSmith

  1. Click on the Project: GS - Lead Gen

LangSmith Lead Generation Project Analysis

This LangSmith dashboard displays monitoring data for a lead generation AI agent project. Over the past week, the system has handled 4 customer conversations with perfect reliability (0% error rate) and full streaming capability.

The agent successfully processed various lead types, including meeting scheduling requests, product inquiries about Pentaho Data Integration, and customer information collection. Performance metrics show reasonable response times, with median latency of 3.62 seconds and first token generation of under 1 second for typical interactions.

Token usage metrics indicate the conversations are efficiently managed, with a total of 6,984 tokens consumed across all interactions and a median of 1,815 tokens per conversation. The system maintains complete conversation traces that can be reviewed for quality assurance.

Sign up | Make HQ
Link to Make.com - Sign Up
https://www.postman.com/postman-account/www.postman.com
Link to Postman
LangChain
Link to LangSmith
LangSmith
Link to LangSmith
LangSmith Pricing
Link to LangSmith pricing
Logo
Logo
Logo
Flowise-Webhook
Lead Gen - Google Sheets
Make.com - Templates
Start creating scenario
Create a Webhook
Copy Webhook to clipboard
Postman HTTP requests
Postman
Enable Google Sheets API
Create a connection
Map fields
Google Sheet Scenario
Updated Google Sheet
Enable Scenario
Verify connection
LangSmith
Create an API Key
Create API Key
Add Langsmith API Credentials
Langsmith API
Add Credentials to Flowise Project
GS - Lead Gen
GS Lead Gen Trace
Logo