Integration with sendMessage