In a general case, there are workflow variables that are accessible to external tasks like CGI. So research those.