Create a project
Create a workflow
Add an HTTP / Webhook trigger
Generate a test event
message
was received as part the event body
.cURL
command, e.g.,Enrich trigger data using Node.js and npm
sentiment
package to generate a sentiment score for our message. To do that, click Continue or the + button.analyze()
function by referencing steps.trigger.event.body.message
and then returns the result.import
it. There’s no npm install
or package.json
required.return
from a step is exported so it can be inspected and referenced it in future steps via the steps
object. In this example, return values will be exported to steps.sentiment.$return_value
because we renamed the step to sentiment .Save data to Google Sheets
sentiment
code step and select the Google Sheets app.ts
key under steps.trigger.context
.steps.trigger.context.ts
:{{
— Pipedream will automatically add the closing braces }}
.Then, type steps.trigger.event.body.message
between the pairs of braces. Pipedream will provide autocomplete suggestions as you type. Press Tab to use a suggestion and then click .
to get suggestions for the next key. The final value in the Message field should be steps.trigger.event.body.message
.sentiment
step to open the results in the editor:{{ }}
.cURL
command: