# Monetize your directory with strategic ad placements Source: https://docs.directify.app/ads/manage-ads Learn how to create, customize, and manage advertisements in your directory with flexible placement options and styling controls Directify's advertising system allows you to monetize your directory through strategic ad placements while maintaining a professional user experience. Create custom ads with flexible styling options and precise placement controls. ## Ad Types ### Default Ad Content Create simple, effective ads with structured components: * **Title** - Eye-catching headline with customizable styling * **Description** - Compelling ad copy with formatting options * **Background Image** - Visual appeal with editor and aspect ratio controls * **Link** - Call-to-action button with custom styling and "sponsored" badge ### Rich Text Editor Use markdown-powered content creation for: * Structured, formatted content * High-resolution images and videos * YouTube/Vimeo embed support * Professional content presentation ### HTML Editor Full control over ad content with: * Custom HTML/CSS implementation * Advanced styling capabilities * Complete design freedom * Professional developer features Creating ads in Directify ## Ad Placement Options ### Hero Everywhere * Displays on all pages in the hero section * Maximum visibility and impact * Ideal for brand awareness campaigns ### Hero Category * Shows only on specific category pages * Targeted advertising for niche audiences * Select multiple categories for broader reach ### Hero Listing * Appears on individual listing pages * Highly targeted placement * Perfect for related products/services ### First Listing * Positioned as the first item in listing grids * Seamless integration with organic content * Native advertising approach ## Styling Customization ### Title Styling * **Font Size** - From extra small to 7X-large * **Color** - Custom color picker for brand alignment * **Font Weight** - Normal, bold, semi-bold, or light * **Font Style** - Normal or italic options * **Custom CSS** - Tailwind classes for advanced styling ### Description Styling * **Font Size** - Flexible sizing options * **Color** - Custom color selection * **Font Weight** - Multiple weight options * **Font Style** - Normal or italic * **Custom CSS** - Advanced styling capabilities ### Image Styling * **Height** - Responsive height options (96px to 384px) * **Border Radius** - From none to full circular * **Border Width** - Customizable border thickness * **Border Color** - Brand-aligned border colors * **Background Color** - Fallback background colors * **Background Position** - Precise image positioning * **Background Size** - Cover, contain, or auto sizing * **Custom CSS** - Additional styling control ### Link Styling * **Link Text** - Customizable call-to-action text * **Font Styling** - Size, weight, and style options * **Border Options** - Radius, width, and color * **Background Color** - Button background customization * **Text Color** - Button text color * **Sponsored Badge** - Customizable "sponsored" indicator * **Badge Colors** - Text and background color options * **Custom CSS** - Advanced button styling ## Ad Management ### Visibility Controls * **Active Status** - Enable/disable ads without deletion * **Category Targeting** - Select specific categories for Hero Category ads * **Listing Targeting** - Choose specific listings for Hero Listing ads ### Performance Features * **Name Field** - Internal organization and identification * **Creation Date** - Track ad implementation timeline * **Easy Editing** - Quick modifications without recreating ads ## Best Practices 1. **Visual Consistency** - Match ad styling to your directory's design 2. **Clear Value Proposition** - Ensure ad content provides clear value 3. **Strategic Placement** - Choose placement based on user behavior 4. **Mobile Optimization** - Test ad appearance on mobile devices 5. **Performance Monitoring** - Track ad effectiveness and adjust accordingly Always maintain transparency with sponsored content by keeping the "sponsored" badge visible and properly configured. ## Integration Tips ### Design Harmony * Use colors that complement your directory theme * Maintain consistent typography with your brand * Ensure ads don't overwhelm organic content ### User Experience * Position ads strategically without disrupting navigation * Maintain clear distinction between ads and directory content * Test placement effectiveness with user feedback *** Customize your directory's overall design Set up monetization through paid listings # Autonomous Directify Agent Source: https://docs.directify.app/ai-tools/agent Run a self-managing AI agent that maintains your Directify directory on a schedule — built on OpenClaw and the Directify API. ## What is the agent? The **Directify Agent** is a pre-configured [OpenClaw](https://openclaw.ai) agent that manages your directory autonomously. Unlike the [MCP server](/ai-tools/mcp-server) (which you chat with on demand), the agent can run on a schedule and perform recurring work — for example, importing scraped listings, tidying categories, or keeping content fresh — and remembers context between runs. This is an advanced, self-hosted setup for users comfortable with the command line. If you just want to manage your directory by chatting, start with the [MCP Server](/ai-tools/mcp-server) instead. ## Prerequisites * [Node.js 18+](https://nodejs.org) * An [API token](/api-integration/authentication) (**Settings → API**) and your **Directory ID** * The Directify agent files (the `directify-agent` package) ## Setup ```bash theme={null} npm install -g openclaw openclaw setup ``` Copy the Directify agent files into a workspace folder and register it with OpenClaw: ```bash theme={null} mkdir -p ~/clawd-directify cp -r ./directify-agent/* ~/clawd-directify/ # First time only — copy the example gateway config cp ~/clawd-directify/openclaw.example.json ~/.openclaw/openclaw.json ``` If you already have an `~/.openclaw/openclaw.json`, add the agent to your existing `agents.list` instead: ```json theme={null} { "id": "directify", "name": "Directify Agent", "workspace": "~/clawd-directify" } ``` Edit `~/clawd-directify/TOOLS.md` and fill in your details: ```markdown theme={null} - **Base URL:** `https://directify.app/api` - **API Key:** `df_live_abc123...` - **Directory ID:** `42` ``` Edit `USER.md` with your name and directory so the agent's output matches your voice: ```markdown theme={null} - **Name:** John - **Directory:** Chicago Restaurants - **URL:** https://chicagorestaurants.com ``` ```bash theme={null} openclaw gateway restart ``` Then message your agent, e.g. *"Show me all my listings"*. ## What it can do The agent has access to the same actions as the [API](/api-integration/authentication) and [MCP server](/ai-tools/mcp-server) — listings, categories, tags, custom fields, organizers, articles, and pages. Because it runs on a schedule and keeps memory, it's well suited to recurring jobs: * *"Every morning, check my source site and import any new listings."* * *"Keep all listings in the 'Old' category set to draft."* * *"Tag every published listing without a website URL as 'incomplete'."* For one-off or interactive work, the [MCP server](/ai-tools/mcp-server) is simpler. Reach for the autonomous agent when you want hands-off, scheduled maintenance. # Directify CLI — Manage Your Directory from the Terminal Source: https://docs.directify.app/ai-tools/cli Install and connect the directify command-line tool. Manage listings, categories, tags, custom fields, organizers, articles, and pages from your terminal or scripts. ## What is the CLI? `directify` is the official command-line tool. It wraps the [Directify REST API](/api-integration/authentication) so you can manage your directory from your terminal, shell scripts, or CI pipelines — no AI required. It's ideal for power users and automation. ## Install Requires [Node.js 18+](https://nodejs.org). ```bash theme={null} npm install -g directify-cli ``` Or run it without installing, using `npx`: ```bash theme={null} npx directify-cli --help ``` ## Connect In your Directify dashboard, go to **Settings → API** and click the **Key icon** to generate a token. ```bash theme={null} directify auth login YOUR_API_TOKEN ``` Your token is stored locally so you only do this once. ```bash theme={null} # Find your directory IDs directify directories list # Set the default so you don't pass --directory every time directify config set-directory 123 ``` ## Start managing ```bash theme={null} # Listings directify listings list directify listings create --name "Bella Trattoria" --description "Authentic Italian cuisine" --categories 1,5 --organizers 8 # Categories & tags directify categories create --title "Italian" --icon "🍝" directify tags create --title "Featured" # Custom fields directify fields create --label "Price Range" --type select --options "$,$$,$$$" --filterable directify fields list # Articles & pages directify articles list directify pages create --title "About Us" --placement navbar ``` Every command supports `--help`, and most accept `-d, --directory ` to target a specific directory (overriding the default) and `--json` for machine-readable output. The CLI mirrors the API one-to-one. If a command errors with a validation message, it's coming straight from the API — see [Authentication → Error Responses](/api-integration/authentication) for what each status code means. ## Common command groups | Group | Commands | | ------------- | -------------------------------------------------------------------- | | `auth` | `login`, `logout`, `status` | | `config` | `set-directory`, `get-directory` | | `directories` | `list` | | `listings` | `list`, `get`, `create`, `update`, `delete`, `exists`, `bulk-create` | | `categories` | `list`, `get`, `create`, `update`, `delete` | | `tags` | `list`, `get`, `create`, `update`, `delete` | | `fields` | `list`, `get`, `create`, `update`, `delete` | | `organizers` | `list`, `get`, `create`, `update`, `delete` | | `articles` | `list`, `get`, `create`, `update`, `delete`, `toggle` | | `pages` | `list`, `get`, `create`, `update`, `delete`, `toggle` | Run `directify --help` (or `directify --help`) to see every command and option. Want to manage your directory by chatting with an AI assistant instead? See the [MCP Server guide](/ai-tools/mcp-server). # Connect the MCP Server to Claude, Cursor & More Source: https://docs.directify.app/ai-tools/mcp-server Step-by-step setup for the Directify MCP server. Connect Claude Desktop, Claude Code, Cursor, or any MCP-compatible AI assistant and manage your directory in plain English. ## What is the MCP server? The **Model Context Protocol (MCP)** is an open standard that lets AI assistants use external tools. The Directify MCP server exposes your directory's management actions — creating listings, categories, tags, custom fields, organizers, articles, and pages — as tools the AI can call. Once connected, you simply chat: > *"Add a listing called Bella Trattoria, Italian category, price range \$\$, and link it to the Acme Events organizer."* …and the assistant does it for you. ## Video walkthrough