Skip to content

Instantly share code, notes, and snippets.

View AngeloGiacco's full-sized avatar
👋
I like functional programming

Angelo Giacco AngeloGiacco

👋
I like functional programming
View GitHub Profile
// Enhanced ElevenLabs WebSocket API implementation
// Emulates Swift SDK functionality and patterns
#include <websocketpp/config/asio_client.hpp>
#include <websocketpp/client.hpp>
#include <nlohmann/json.hpp>
#include <iostream>
#include <thread>
#include <chrono>
#include <functional>
@AngeloGiacco
AngeloGiacco / migrate_agent.py
Last active May 20, 2025 08:42
Migrate elevenlabs agents to new workspace
import os
import requests
import json
import copy
from dotenv import load_dotenv
# Load environment variables from .env file
load_dotenv()
OLD_ELEVENLABS_API_KEY = os.getenv("OLD_ELEVENLABS_API_KEY")
@AngeloGiacco
AngeloGiacco / scrape.py
Created May 12, 2025 16:52
Recursively scrape domain and add to elevenlabs knowledge base
import requests
import time
from bs4 import BeautifulSoup
from urllib.parse import urljoin, urlparse
import json
import sys
import argparse
import logging
# --- Configuration ---