Account portrait — photo by Korede Adenola on Pexels
Ridgeline Team

You have 38 of 50 free runs remaining on the Starter plan.

Learn more

Endpoints

Publish this flow by attaching an inbound endpoint.

Webhook LEGACY

Post new Fieldkit replies to Huddle

Pull the latest survey submissions

Update this block to keep webhooks working. Legacy links will be dropped.
Start
Takes input of any type
HTTP Get survey data
Fieldkit
GET https://api.fieldkit.io/v1/surveys/{…}
Send Success ( )
Fail ( )
1 variable Add environment
surveyId +
body.replies ?
Evaluate WQL
value1 Enter path…
variable +
$reverse(value1)
Snippets ⌄Result [ ]
For
List Item ?
Start

List every message in one channel

HTTP Get channel messages
Huddle
GET https://api.huddle.dev/v1/history
Send Success ( )
Fail ( )
2 variables Add environment
channel_id +
huddleTokenKey +

Keep only messages posted by your bot

Evaluate WQL
value1 Enter path…
botId botId ⌄
variable +
$filter(value1.body.messages, fn ($m) { ($m.bot_id = botId) })
Snippets ⌄Result [ ]

Convert the newest timestamp to millis

Evaluate WQL
value1 .0
variable +
$fromMillis($number(v.ts) * 1000)
Snippets ⌄Result Aa

Your bot ID — store it in this variable

Aa {yourBotId}
botId