Skip to main content
Ra.kib
HomeProjectsResearchBlogContact

Let's build something great together.

Whether you have a project idea, a research collaboration, or just want to say hello — my inbox is always open.

contact@devrakib.commuhammad.rakib2299@gmail.com
HomeProjectsResearchBlogContact
Ra.kib|© 2026Fueled by curiosity
Back to Blog
custom ai agents
personalized feeds
anthropic
bluesky

Building Custom AI Agents for Personalized Feeds

Learn to create custom AI agents using Anthropic's Claude and Bluesky's AT Protocol for personalized feed generation.

Md. RakibMarch 31, 20263 min read
Building Custom AI Agents for Personalized Feeds

Introduction to Custom AI Agents

Creating custom AI agents is a crucial step in generating personalized feeds, as it allows for tailored content to be delivered to users based on their interests and preferences. With the rise of AI technology, companies like Anthropic and Bluesky are providing developers with the tools needed to build custom AI agents. In this tutorial, we will explore how to use Anthropic's Claude and Bluesky's AT Protocol to generate personalized feeds.

Understanding Anthropic's Claude

Anthropic's Claude is a powerful AI model that can be used to generate human-like text based on a given prompt. To use Claude, we need to integrate it into our application using the provided API. Here is an example of how to use Claude in Python:

import requests

claude_api_key = 'YOUR_API_KEY'
claude_api_url = 'https://api.anthropic.com/claude'

def generate_text(prompt):
    headers = {'Authorization': f'Bearer {claude_api_key}'}
    data = {'prompt': prompt}
    response = requests.post(claude_api_url, headers=headers, json=data)
    return response.json()['text']

Understanding Bluesky's AT Protocol

Bluesky's AT Protocol is a decentralized social networking protocol that allows developers to build custom AI agents for personalized feed generation. To use the AT Protocol, we need to create a Bluesky account and obtain an API key. Here is an example of how to use the AT Protocol in JavaScript:

const axios = require('axios');

const bluesky_api_key = 'YOUR_API_KEY';
const bluesky_api_url = 'https://api.bluesky.social';

async function generate_feed(user_id) {
    const headers = { 'Authorization': `Bearer ${bluesky_api_key}` };
    const params = { user_id };
    const response = await axios.get(`${bluesky_api_url}/feed`, { headers, params });
    return response.data;
}

Building Custom AI Agents

To build custom AI agents, we need to combine the power of Anthropic's Claude and Bluesky's AT Protocol. We can use Claude to generate personalized text based on user interests, and then use the AT Protocol to deliver the personalized feed to the user. Here is an example of how to build a custom AI agent in TypeScript:

import axios from 'axios';

const claude_api_key = 'YOUR_API_KEY';
const bluesky_api_key = 'YOUR_API_KEY';

async function generate_personalized_feed(user_id) {
    const prompt = `Generate a personalized feed for user ${user_id}`;
    const claude_response = await axios.post('https://api.anthropic.com/claude', { prompt }, { headers: { Authorization: `Bearer ${claude_api_key}` } });
    const personalized_feed = claude_response.data.text;
    const at_protocol_response = await axios.get(`https://api.bluesky.social/feed`, { headers: { Authorization: `Bearer ${bluesky_api_key}` }, params: { user_id } });
    return at_protocol_response.data;
}

Conclusion

In this tutorial, we have learned how to create custom AI agents using Anthropic's Claude and Bluesky's AT Protocol for personalized feed generation. We have seen how to use Claude to generate human-like text based on a given prompt, and how to use the AT Protocol to deliver personalized feeds to users. By combining these technologies, developers can build custom AI agents that provide users with tailored content based on their interests and preferences.

Back to all posts
Building Custom AI Agents for Personalized Feeds | Md. Rakib - Developer Portfolio