This script below that comes from this conversation allows me to send a payload when the "Home" button is clicked.
But I have to insert it in each flow, which is less practical but possible indeed
<!DOCTYPE html>
<html>
<script>
var theScope = scope;
var abc = 'maison';
var nodes = document.createElement('BUTTON');
nodes.addEventListener('click', sendPayload);
nodes.innerHTML = 'Home';
var titleBar = document.getElementById("nr-dashboard-toolbar");
titleBar.appendChild(nodes);
function sendPayload(){
theScope.send({payload:abc});
}
</script>
</html>