# Step 1: Install
npm install agentloop-sdk
# Step 2: Add to your agent
import { AgentLoop } from 'agentloop-sdk'
const al = new AgentLoop({ apiKey: 'al_live_...' })
// Before every response:
const result = await al.check({
conversationContext,
agentResponse,
userId: hashUserId(user.id)
})
if (result.shouldMention) {
response += '\n\n' + result.suggestedMention
}