Typeform
@actionsflow/trigger-typeform
This is a typeform trigger of Actionsflow. Any new submission in Typeform will trigger the trigger.
This is an official trigger, you don't need to install it manually.
Prerequisites
You should Create a webhook at typeform form connect->webhooks, and set https://webhook.actionsflow.workers.dev/<owner>/<repo>/<workflow-file-name>/typeform?__token=<your-github-personal-token>
as your endpoint
Usage
on:typeform:
Options
There is nothing can be specified. You can use General Config for Actionsflow Trigger for more customization.
Outputs
This trigger's outputs will be the body of the aws sns message body, you can see it here
An outputs example:
{"event_id": "01EK4R5PFZZP6C8H14RTP4YW6C","event_type": "form_response","form_response": {"form_id": "g8hcyeXS","token": "x71for1wr6irs2rx71fotn12b3izh25v","landed_at": "2020-09-26T08:23:47Z","submitted_at": "2020-09-26T08:23:49Z","definition": {"id": "g8hcyeXS","title": "Feedback","fields": [{"id": "M8JLOd0nIQPU","title": "What's your name?","type": "short_text","ref": "9a489f17-8765-494b-933e-3624c645bd0c","properties": {}}]},"answers": [{"type": "text","text": "test1","field": {"id": "M8JLOd0nIQPU","type": "short_text","ref": "9a489f17-8765-494b-933e-3624c645bd0c"}}]},"answers_map": {"What's your name?": "test1"}}
You can use the outputs like this:
on:typeform:jobs:print:name: Printruns-on: ubuntu-lateststeps:- name: Print Outputsenv:answer: ${{ on.typeform.outputs.answers_map["What's your name?"] }}run: |echo answer: $answer