How to Set up a Barcode Scanner Process
What This Solution Will Do for You
In this article we explain how to set up a process where users can scan a product's barcode and get information on it.
What You Need for This Solution to Work
You will need two things to implement this article:
- A product feed microservice and its URL & endpoints
- Data of your specific products in the feed (prefix, shop-directory, url)
Set up the Process
You can also copy a finished process from a toolbox. Then you only have to change the specific parameters in webservice process bricks (see below).
Add a Snapshot Process Module
This snapshot process module will present the user with the option to scan a barcode.
Add one category and enter *
as the recognized barcode. This will recognize all barcodes as belonging to this category.
Add a Webservice Process Module
In this webservice we will send the recognized barcode to our product feed microservice. It will then create a message with information about the product for us. It will also create some process variables, that we will use later on.
You will need to enter the URL of the microservice as well as the parameters the microservice requires.
These parameters are usually:
Name | Purpose |
---|---|
authentication | Verifying that we are allowed to call the microservice |
prefix | Prefix of your specific products (e.g. country code) |
shop | Name of the shop directory on your URL |
url | URL of your website, links will point to this |
Add a Questionnaire
This questionnaire will ask the user, which further information he/she wants from the product feed.
This information will be saved in a variable and sent back to the products feed (at a different end point).
Add Second Web Service
Here, we will send the selection of the user for additional data and the microservice will create a corresponding message.
Again, we will need to configure the URL and params (see above).