How to test the code block

I installed Activepieces today!
I’m using this version: Package activepieces · GitHub.

I’ve set up a simple flow:

  1. A webhook from Telegram

  2. Custom JavaScript code to process the message

  3. A Telegram text message response

But here’s the problem:
I can’t get any output from the second step.

I’ve clicked “Test Step,” sent a message to the Telegram bot, but nothing happens.

What am I doing wrong?

Hello @k.tereshin you should share the code to see if someone can help you identifying the issue.

You could try adding a console.log() to your code and then checking the logs to see if it is giving you the correct output. (In your case you would probably want to swap out the string "this is a test" and put in the result of your code.)

Another basic trivial example showing using it with your inputs: