X / Social Integration
Listening Engine
Using the X API v2, KAIZO listens to brand mentions, hashtags, and chain-linked content in real time.
client.stream('statuses/filter', { track: '@kaizo' }, function(tweet) {
const postContent = tweet.text;
const handle = tweet.user.screen_name;
const response = generateReply(postContent);
client.post('statuses/update', {
status: `@${handle} ${response}`,
in_reply_to_status_id: tweet.id_str
});
});Last updated