ByteChef LogoByteChef

Working with Triggers

Working with Triggers as a developer

Download and Set Up ngrok

  1. Download ngrok
  2. Start ngrok
    • Open a terminal and run the following command to start ngrok:
    ngrok http http://127.0.0.1:9555
    • Copy the first address listed under "Forwarding". This will be used as your webhook URL. ngork example

Configure the webhook URL

Where the ngrok URL goes depends on how you run the server.

  1. Open Bytechef Codebase:

    • Navigate to bytechef/server/apps/server-app/src/main/resources/config.
  2. Create Local Configuration:

    • Create a file named application-local.yml.
    • Note: application-local.yml is optional, git-ignored, and corresponds to the local Spring profile. Ensure the local profile is activated on Spring Boot startup.
  3. Configure Webhook URL:

    • Add the following configuration to application-local.yml, replacing (first address under Forwarding) with the copied ngrok URL:
    bytechef:
          webhook-url: (first address under Forwarding)/webhooks/{id}
  4. Activate Local Profile:

    • Ensure that the local profile is added to active profiles in your IntelliJ configuration. intellij-scr
  5. Start the ByteChef application.

How is this guide?

Last updated on

On this page