This code creates a social network diagram using 1-1 Direct Messages in a Slack Workspace. It's great for understanding where silos exist in any organization, and who are the people or teams breaking silos.
Nodes are individuals. Edges are if they have a 1-1 message within the last sixty days.
You can opt to anonymize this by substituting names with data such as position, department, or employee ID.