Diaflow's Documentation
HomePricingIntegrations
Documentation
Documentation
  • 😎WELCOME TO DIAFLOW
    • Introduction to Generative AI
    • What can you build with Diaflow?
  • 💻USER ACCOUNT
    • Create your user account
    • Delete your user account
    • Log out and log in
    • Change "Personal" & "Workspace" settings
    • Reset user account password
  • 🚀Getting Started
    • Let's start with the basics
      • How a component works?
      • How a flow works?
      • Creating your first flow
    • Dashboard
      • Services
      • Create a flow from scratch
      • Create a flow from templates
      • View your flows
    • Terminology
  • 🌊Flows
    • Overview
    • Create a flow
    • Delete a flow
    • Manage a flow
    • Publish a flow
    • Unpublish a flow
    • Deployment
    • Component Reference
      • Trigger
        • When inputs are submitted (Apps)
        • Cronjob (Automation)
        • Webhook (Automation)
        • Microsoft Outlook (Automation)
      • Outputs (Apps)
        • Text Output
        • Chart Output
        • Video Output
        • Audio Output
        • Image Output
      • Built in tools
        • Branch
        • Merge (Multiple data source to JSON)
        • Split Data (JSON Formatter)
        • Video to audio
        • Get current date and time
        • Web scraper
        • Document to plain text
        • Retrieve data from spreadsheet (Spreadsheet analyzer)
        • Spreadsheet creator
        • Convert JSON to chart data
        • PDF to image
        • Get weather information
        • HTTP Request
        • Get GEO Location
        • SMTP
        • Loop
      • Built in resources
        • Diaflow Vision
        • Diaflow Vectors
        • Diaflow Drive
        • Diaflow Table
      • Apps
        • Hunter.io
        • Outlook Email
        • Telegram
        • Slack
        • Python
        • YouTube
        • SerpAPI
        • Google Sheet
          • Document-level Operations
          • Sheet-level Operations
          • Data-level Operations
      • Database
        • MySQL
        • Microsoft SQL
        • PostgreSQL
        • Snowflake
      • Private AI/LLM Models
        • OpenAI
          • GPT Variants
          • GPT Vision
          • DALL-E Variants
          • TTS Variants
          • Whisper
        • Anthropic
        • Llama
        • Google Gemini
        • Cohere
        • MistralAI
      • Public AI/LLM Models
        • OpenAI Cloud
        • Perplexity Cloud
        • Deepseek Cloud
        • Anthropic Cloud
        • Replicate
        • Straico
        • OpenRouter
        • Cohere Cloud
        • Google Gemini Cloud
        • MistralAI Cloud
        • ElevenLabs Cloud
      • AI Tools
  • ✒️PRODUCTIVITY TOOLS
    • Tables
    • Drive
    • Vectors
      • Document
      • Article
      • URLs
  • 🏠Workspace
    • History
    • Teams
    • Billing & Subscription
      • Upgrade/Downgrade a subscription
      • Buy credits
      • Credit Usage
      • Cancel a subscription
    • Settings
      • Personnal
      • Workspace
        • Change workspace
        • Workspace settings
        • Custom Domain
        • Delete workspace
      • Change Language
    • Documentation
    • Integrations
    • API keys
  • 📑Other
    • FAQs
    • Contact Information
Powered by GitBook
On this page
  • Component settings
  • Use case
  • How to Set up a node Trigger Webhook

Was this helpful?

  1. Flows
  2. Component Reference
  3. Trigger

Webhook (Automation)

Receive real-time data from another application. (Just apply with Automation)

Last updated 1 month ago

Was this helpful?

Description

The Webhook component facilitates real-time data transmission between applications whenever a specific event occurs. In our algorithm, the webhook acts as an input, enabling our system to receive and process data instantly upon the triggering event.

Component settings

Parameter Name
Description

Webhook endpoint

You can turn this option on or off with a button.

When enabled, it will provide you with the URL (Include API Key) for the Diaflow webhook builder and the request body.

API Key

You can choose API Key from the list of API Keys on your Workspace **In case the list of API Keys on your Workspace is null, you can "Create new API Key" on the node

Body

You can add a key and specify whether it is Required or Optional.

Use case

Here's a use case for the Webhook component: it is used to analyze a PDF document by asking, "How to scale the B2B engine?"

How to Set up a node Trigger Webhook

Step 1: Set Up the Node Trigger Webhook

Setting up the node trigger webhook. In the "Config" tab, select Type = "When Webhook Received"

Step 2: Enable the Webhook Endpoint

Switch the "Webhook endpoint" toggle to ON.

Step 3: Choose API Key

Choose API Key from your API Keys List.

Make sure that your API Key is included in the header when calling the webhook. This security

measure helps protect your data and environment.

If your list is "Null" -> At node, you can "Create new API Key"

Step 4: Configure the Body Fields

Enter the values in the Body section. These are the data fields the system will receive from the Webhook. You can mark them as "Optional" or "Required".

Note: If the system receives a Webhook request that does not contain the required fields, an error will be returned.

Step 5: Preview the Webhook

You can test the Webhook using one of the following methods:

Method 1: Test with URL

  1. Select test method = "Test with URL".

  2. Recommendation: Use Postman to preview the Webhook.

Steps to Test with Postman

  • Copy the Webhook URL on Diaflow

  • Open Postman.

  • Use the "POST" method.

  • Paste the Webhook URL.

  • Go to the "Header" tab:

    • Key = x-api-key

    • Value = Paste the API Key of Diaflow system

  • Go to the "Body" tab:

    • Select "Raw" format.

    • Enter the data fields (e.g., Name, Age, Gender).

  • Click "Send".

  • If the response contains "success": true, the connection is successful. You can now use this Webhook configuration to transmit data.

Method 2: Test with Sample Data

  1. Select test method = "Test with sample data".

  2. Create sample data.

This setup ensures your Webhook is properly configured and ready to receive data.

🌊