support sending text through agent channels (issue #5295)