In your example, SupportedContacts is the data table key, so those are the input values.
So assuming Flow.DepartmentCode from your collect input is going to be a SupportedContacts value then for input put Flow.DepartmentCode - Note you should probably do some validation checks beforehand, what if they entered too many or too few numbers, what if they included a * or # and weren't supposed to and so on.
Outputs you are going to assign either existing or new variables, in the case of Name in your example, a string variable. So for example in Name you might have Flow.Name which will the corresponding name from the table. So for example if the department code was 101 then your name output will return Alice.
------------------------------
Anton Vroon
------------------------------