The iflow-plotter is a command line tool written in NodeJS. With the iflow-plotter, SAP CPI IFlows can be converted into diagrams / graphics. The exported graphic files can in turn be used for documentation purposes.
The advantage over classic screenshots is that the iflow-plotter supports not only raster formats (such as png) but also vector-based output formats such as svg. More information about the tool can be found on SAP blogs. The tool itself can be installed via NPM whilst the source code can be found on Github.