Setting up a First Value Stream
Create a Hello World value stream that sends a feedback form and completes when the recipient submits their response.
In this trail, you create a value stream that responds to a Hello World event from a sender. The value stream sends a feedback form to the sender and completes once they submit their response. The sender can be a customer from whom you are collecting feedback.
Work through each section in order from top to bottom.
Building the initial part of the value stream
A value stream starts with a trigger event, followed by process steps. External events act as triggers and are sent to an event-receiver endpoint. Process steps are actions that run in sequence to complete the flow.
Create a Hello World event
Create a new Hello World event with hello_world as the event name. The event name is the technical ID.
In VSM, go to Events -> Event Registry. For details, see the Event Registry and Events Authentication and Configuration guides.
Create a value stream with the Hello World trigger
Create a new value stream that uses the hello_world event as a trigger.
Go to the Value Streams dashboard and select Create value stream
Enter Hello World as the process name
Select the Hello World event as the trigger
Select Publish to save your changes
When you publish, your changes are saved but the process is not active yet. To activate the process, use the active/inactive toggle in the value stream dashboard.
Sending an event to trigger the value stream
Before you continue, send data to VSM to complete the event connection. You can use Postman or Celonis Action Flows.
Postman
Send the Hello World event
Get the Webhook Target URL and HMAC Secret and send the Hello World event following the instructions in Events Authentication and Configuration. The guide includes a Postman collection that shows how to authenticate the request by generating the HMAC signature.
Send a POST request with {"hello" : "world"} in the body. The endpoint responds with 200 OK and a confirmation payload:
{
"status": "SUCCESS",
"message": "Request successfully handled. Request ID: req_M4XnFkQm2aPUTGqiteyN",
"request_id": "req_M4XnFkQm2aPUTGqiteyN"
}Celonis Action Flows
If you are a Celonis customer, you can trigger a value stream from EMS using the Action Flow module. A public Emporix Orchestration Engine module enables you to start value streams.
Configure the connection
Set up the connection to include the source, secret, and COP API client and secret following the instructions in Configuring a connection between VSM and Make modules.
Send the Hello World payload
Select the Hello World event type
Send
{ "hello" : "world" }as the payloadTrigger the action flow
The endpoint responds with 200 OK and a confirmation payload:
{
"status": "SUCCESS",
"message": "Request successfully handled. Request ID: req_M4XnFkQm2aPUTGqiteyN",
"request_id": "req_M4XnFkQm2aPUTGqiteyN"
}Verifying receipt of the message in the Debugger
Verify that your payload was received and that it activated a new value stream. Use the Value Streams Debugger.
Creating a feedback form
After you create and validate the trigger event, add a process step in the Hello World value stream. The step includes a form for the sender to submit feedback.
Use the Form builder integrated with VSM. For details, see the Forms documentation.
Creating a skeleton scenario process step
Add a new process step
Go to your Hello World value stream and add a new process step. For details, see Creating a Value Stream.
Create a new scenario
In the new process step, select Create New Scenario.
A new tab opens with a scenario step template in Make, including a starting module and a completion event.
Ensure you are working in the correct Make organization. The name should reflect your tenant name in VSM. Hover over the Make sidebar to see the organization name at the top. Then select the template directly or choose Start guided setup.
Configure the Trigger Event webhook
Add a webhook name in the Trigger Event module.
The webhook connection is established automatically. If you need to set it up manually, select Add next to the connection field in the Webhook module and provide the Connection Name, Tenant ID, and Event-Receiver Secret.
The tenant ID is the first part of the value stream ID. You can find it in two places:
VSM -> Admin -> Settings – displayed next to the Make Team name
The URL of your value stream instance
Configure the Completion Event connection
In Make, open the Completion Event module and select the connection.
If the connection is not established yet, configure it in the module:
Select Add next to the Connection field
Provide the Event-Receiver Endpoint and Environment data
Use the endpoint data from Admin settings in VSM. Use the environment data from your COP API keys in the Developer Portal.
Extract the replyTo email address
Use the Set Variable from Process Context module to extract the replyTo email address from the payload and assign it to a variable named email.
Add the Set Variable from Process Context module between the Trigger Event and Completion Event modules
Assign the data from the Trigger Event
Select the Hello World value stream
Use the Instance ID from the debugger (see step 4) as the Example Instance. Select the ID from the drop-down list. The ID at the top is from the latest instance
Enter
emailin the Variable Name field
Verifying if the scenario step works
Resend the event and check the result
Confirm there are no errors in your request, then resend the event using Postman or Celonis Action Flow (as in step 2 of Creating a skeleton scenario process step). Check that the scenario works as expected. You see operation details in the Set Variable from Process Context module. After you send the request, the scenario initializes and completes.
Update the scenario process step to email the feedback survey
Use the Feedback form you created earlier and email it to the replyTo address. Pre-populate one of the fields. The recipient opens the form using a Magic Link. The value stream waits until the Feedback form is submitted (saved as draft) before completing.
Configure the Create Form Magic Link module
Select the Feedback form
Set Assign Contact to no – you use the email address from the event
Select Hello_feedback_provided as the submission event type – this raises the expected event when the form is submitted
Set Submitted Only Once to Yes
In Value Stream Instance ID, select Value Stream Instance ID from the Trigger Event module items – this ensures the correct process resumes when the form is submitted
Leave Name and Language empty
Select Save
Troubleshooting
If the Hello World value stream trail did not work, try the following:
I got the email, submitted the form, but the process did not complete.
Check that you mapped the value stream ID in the Create Form Magic Link module
Confirm you selected the Hello_feedback_provided event as the submission event type in the Create Form Magic Link module
I created the process step with Send a Survey on Hello World and ran the test, but I did not get any email.
Check for errors in the Make scenario that sends the email
Check your junk folder
Check your mail provider logs
Last updated
Was this helpful?

