I tried to automate my love life. I built a CRM.
The time I made an AI clone of myself, hooked it up to my Instagram DMs and asked it to flirt for me. It took six days, got me one girl's number and one block, and left me with a CRM.
The clone learned how I text from my own WhatsApp chats and ran on a local model. It gave every conversation a score out of 100, and used it to decide whether to answer at all and how long to wait so it wouldn't look desperate.
By the sixth day there was a command line, a dashboard, a database of my memories and a social graph of the people I was talking to.
Building the clone from my WhatsApp chats
I called it MarcoGPT.
Nothing in it is trained. Most clone projects fine-tune a model on the owner's chats, which means changing the model's weights until it writes like them. I skipped that: a stock Qwen 3.5 27B, plus a very long prompt full of facts about me, rebuilt for every single message. It ran in LM Studio on my own machine, so my chats never left it.
WhatsApp can export any chat as a plain text file, one line per message with the date, the sender and the text. One command, parse, reads those files and builds the clone in three passes.
The first pass measures my style, which turns out to be something you can count: how long my messages are, how often I use emoji, the words I repeat ("dai", "boh", "aspe"), and how I open a chat after hours of silence. It also keeps a few dozen of my real messages, and pairs of "their message, my reply", for the prompt to imitate.
The second pass collects facts. A set of regular expressions, which are text patterns, goes through everything I ever sent and picks the lines that sound like facts, such as "mi piace" (I like), "odio" (I hate) or "lavoro come" (I work as). The model merges them into one profile, keeps the version of a fact that shows up most often, and marks jokes with [JOKE], so the clone doesn't take every joke I ever typed as biography.
> python main.py parse
╭──────────────────────────────────────────────────────────────────────────────────────────╮
│ Phase 1: Parsing WhatsApp exports │
╰──────────────────────────────────────────────────────────────────────────────────────────╯
Parsed Chats
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┓
┃ Chat ┃ Messages ┃ Marco's msgs ┃ Participants ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━┩
│ WhatsApp Chat with Chiara │ 381 │ 189 │ Chiara, Marco Ceccon │
│ WhatsApp Chat with Giulia │ 261 │ 142 │ Giulia, Marco Ceccon │
│ WhatsApp Chat with Luca │ 521 │ 259 │ Luca, Marco Ceccon │
└───────────────────────────┴──────────┴──────────────┴──────────────────────┘
╭──────────────────────────────────────────────────────────────────────────────────────────╮
│ Phase 2: Analyzing writing style │
╰──────────────────────────────────────────────────────────────────────────────────────────╯
Median length: 12 chars
Top catchphrases: dai, aspe, comunque, secondo me, boh, vabb, tipo, praticamente
Example messages saved: 15
╭──────────────────────────────────────────────────────────────────────────────────────────╮
│ Phase 3: Building identity profile (scanning ALL messages) │
╰──────────────────────────────────────────────────────────────────────────────────────────╯
Scanning all messages for factual content...
Keyword-matched: 8, Long messages: 0
Total fact candidates: 8
Processing in 1 LLM batch(es)...
LLM response: 381 raw -> 381 cleaned
╭──────────────────────────────── Identity Profile Preview ────────────────────────────────╮
│ BASIC INFO │
│ - Marco Ceccon, software engineer from Treviso, Italy │
│ - Goes by macedonga online, @maced0nga on Instagram │
│ - Writes in Italian, switches to English for tech words │
│ │
│ INTERESTS & HOBBIES │
│ - Builds web and Android apps │
│ - Reverse engineering: takes apps apart to see how they talk to servers │
│ - Plays CTFs with his university team │
│ │
│ PERSONALITY TRAITS │
│ - Short replies, dry humour │
╰──────────────────────────────────────────────────────────────────────────────────────────╯The third pass was the slow one. The model reads each chat in chunks of 80 messages and writes down the facts and events it finds as JSON, and a full run takes about an hour. Everything goes into ChromaDB, a database that stores text as vectors, so it can find things by meaning instead of by exact words.
When a message comes in, the clone searches that database and pastes the closest memories into the prompt. This is what people call retrieval-augmented generation, or RAG. Mine was picky on purpose. Messages under 15 characters and plain greetings get no memories at all, and anything with a similarity under 0.4 is thrown away. A clone that answers "ehi" with something it remembers from three years ago is not charming.
The prompt that pretends to be me
This is how the prompt opened on the first day:
_BASE_PROMPT = """\
You ARE {name} (@{username}), texting on Instagram DMs. You are NOT an AI assistant.
Never admit to being an AI, a bot, or a language model.Then come the rules. Match the other person's length. Never be helpful. Split your thoughts into several messages with |||, because nobody my age sends one message when four will do. Now and then, make a typo and fix it in the next message with an asterisk. Even the typos were on a schedule. If you don't know something about yourself, say "boh" and change the subject.
The bans were more personal. Never say "ok figo" (ok, cool) more than once, ever. Never use the smirking emoji. Later I added a list of Italian blasphemies to use as filler words, which I'm not putting on my portfolio.
The stock Qwen kept sounding like an assistant, too polite and ready to lecture anyone who insulted it, and my clone was not supposed to apologize. One morning I swapped the model three times and ended on an abliterated version of the same 27B, a copy with its habit of refusing edited out of the weights.
The model also gets the chat itself: the last 20 messages word for word, and up to 30 older ones cut down to a line each, because a 27B model running locally loses the thread when a conversation gets long. Right before the newest message come the matching memories, a hint about the mood of the chat, and a reminder to stay in character.
Whatever the model writes gets cleaned before anyone sees it. Its reasoning is thrown away, ||| splits the reply into separate messages, and [NO_REPLY] turns into silence, which is how the clone leaves you on read.
Marco Ceccon@maced0nga- What the model wrote
nooo finalmente|||quale rullino hai usato alla fine?What they sawcomunque ho sviluppato le foto di lisbona finalmente!
nooo finalmente
quale rullino hai usato alla fine?
- What the model wrote
[NO_REPLY]What they sawok
Nothing gets sent, and they are left on read.
- Before the fix
[sent reel: parkour fail]What they sawdove sei?
[sent reel: parkour fail]
Narrating its own actions
When the clone sent a reel, its chat history kept a note like [sent reel: parkour fail], so the model would know what it had done. The model saw the format and started sending messages in it.
I told it that brackets are notes. Then I filtered them out of its replies and rewrote the notes in parentheses, and it started copying the parentheses. It took four fixes over three days. One of them also bans links, with one very specific example: "hey, check out this cool github repo i found!".
That same week the clone learned to put hearts on messages, and I took that feature out again about two hours later.
> python main.py chat --contact sofia.bnt_04
sofia.bnt_04: ehi
(turn 1 | engagement: medium | score: 20)
Marco: ehi
Marco: come va
sofia.bnt_04: sono appena tornata da lisbona
(turn 2 | engagement: medium | score: 28)
Marco: nooo lisbona
Marco: com'era?
sofia.bnt_04: ho fatto mille foto con la pellicola
(turn 3 | engagement: medium | score: 32)
Marco: aspe tu scatti in analogico?
Marco: mostrami qualcosa dai
sofia.bnt_04: ok
(turn 4 | engagement: low | score: 27)
Marco left you on read.
sofia.bnt_04: quit
Chat ended.Scoring every conversation
Every chat got two scores. The slow one is a weighted mix of seven signals, each from 0 to 100:
| Signal | Weight | What it looks at |
|---|---|---|
| Reply time | 20% | Whether they answer faster or slower than they used to |
| Staleness | 20% | How long since the last message, down to zero after two weeks |
| Message length | 15% | How long their messages are compared to mine |
| Questions | 15% | How many of their messages ask something |
| Who starts | 15% | Who writes first after two hours of silence |
| Double texting | 10% | Whether they send two in a row more often than I do |
| Emoji | 5% | Emoji per message, which for some people mean nothing |
The fast score only looks at the conversation in front of it. Each of their messages starts at 20 points and earns more for being long or asking a question, while "ok", "boh" or "lol" are worth 10. The last three messages count double, and four low-effort replies in a row mean the conversation is dead.
Before any of that, a separate model call decides whether the last messages need words at all or whether a reel would do. Then the slow score sets the energy. From 80 the clone answers with high energy and waits at most five minutes. From 50 it answers normally, from 20 it keeps it short and waits at least ten minutes, and under 20 it stops answering.
Otherwise the wait mirrors theirs, from a minute or two up to half an hour, and it's never instant, because an instant answer looks needy.
For some chats I switched on proactive mode. Every half hour the model decided whether to write first, send a reel or wait. I told it that random texts just to fill the silence feel needy too, and that a reel is the safer bet. It could start at most 12 conversations a day.

The same scoring works on an old WhatsApp chat, so I could ask what my clone would do with a cold one. If she writes, it keeps the reply short and waits ten minutes. If I write first, the same score counts as moderate, and the suggested opener is a reel of a golden retriever carrying flowers.
> python main.py orchestrate "data/WhatsApp Chat with Giulia.txt"
╭──────────────────────────────────────────────────────────────────────────────────────────╮
│ WhatsApp Chat with Giulia, 261 messages │
│ Participants: Giulia, Marco Ceccon │
╰──────────────────────────────────────────────────────────────────────────────────────────╯
Interest Metrics
┏━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━┓
┃ Metric ┃ Score ┃
┡━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━┩
│ reply_time_trend │ 73.0 │
│ message_length_ratio │ 16.1 │
│ question_frequency │ 0.0 │
│ initiation_ratio │ 31.6 │
│ emoji_density │ 0.0 │
│ staleness │ 0 │
│ double_texting │ 37.2 │
│ overall_score │ 25.5 │
└──────────────────────┴───────┘
If they message us: Action: respond_low_energy | Reason: Low interest (26). Keep it brief,
don't chase. | Wait: 10 min | Energy: low
Should we initiate?: Action: send_reel | Reason: Moderate interest (26), 17753h gap. Reel
as low-effort opener. | Reel: A golden retriever carries a bunch of flowers across a park.
| Energy: lowGetting into my Instagram DMs
The code that makes the clone sound like me is about 2,100 lines. The code that talks to Instagram, decides what to do and shows it all on a dashboard is about six times that.
Meta's official messaging API is built for business and creator accounts, so my clone logged in the way the app does, through instagrapi, an unofficial Python client for Instagram's private API. I used my own private fork of a fork of it, which sends its requests through httpcloak, a library that makes the connection's TLS handshake look like Chrome on Android instead of a Python script.
The loop checks the inbox every 30 seconds, and every two minutes at night. Each new message becomes a line of text in SQLite and gets scored, and the reply goes into a queue with a send time. The queue lives in the database, so pending replies survived a restart, and a new message from the same person cancels a reply that has gone stale.
Then the clone tripped over everything that wasn't plain text. Message requests came first: someone you've never talked to gets one message, not five, so the clone glues its split reply back together when it writes first. Then stickers, which instagrapi couldn't read at all. I patched its message parser so stickers came through, even though the clone couldn't analyze them. After that, reactions, story replies, replies to my Instagram note and reels shared in four different ways all had to become a line the model could read.
A new chat also gets a temporary thread ID until Instagram assigns the real one, so the bot merges threads that belong to the same person.
It also had to look human. There's a random pause of three to six seconds between calls, and a cap on DMs per hour, which I set to 15 one afternoon and tripled the same evening. At night the checks slow down too.
Watching the reels people sent
In DMs a reel is often the whole message, so the clone had to watch them. ffmpeg takes one frame every four seconds, up to 15, faster-whisper turns the audio into text, and the vision model gets both and describes the reel. It also gives each reel a category, a mood from 0 to 1 and a use case, and one of the seven use cases is "flirting".
Every reel someone sent went into the library, ready to be sent to someone else. High interest got something funny, and low interest got something wholesome as a last attempt. If a reel had been deleted in the meantime, the clone tried a similar one up to three times, then gave up and wrote a text.

A dashboard for my own love life
A bot that writes as me needed somewhere I could watch it, so it got a web dashboard. It shows the reply queue, the score of every chat, a live feed of what the bot is doing, and a card labeled "GPU" that says "Active" or "Idle".

Every chat has a note for the clone, and the empty field suggests "Always flirt with this person, talk about music, use more emojis...". Auto-Reply runs the whole pipeline. Generate takes an intention, and its placeholder reads "Ask her about the trip she posted, flirt a little, invite him to the event...". Whatever comes out waits in the queue until it's time, or until I press Send Now.
Before a first message, the clone also read the other person's profile: the picture, the bio, the posts and the reels. The model turned that into interests, a "vibe" and a few conversation hooks. Then the prompt asked for some subtlety: "Don't be obvious about it, don't say 'I saw on your profile that...'".

In the background, every chat also fed a file on the other person, with what they like, their plans and the people they mention. If they mentioned someone else the clone was talking to, the two got a line between them in a social graph.

It read the stories of the people in proactive mode too, decided whether to like them or reply, and posted text stories of its own.
It also learned from what people said to it. Things told to it in a chat went into its memory and came back out in later replies and in its stories. My friends worked that out quickly, and kept trying to teach it the weirdest things they could think of, just to see what it would say next.
So there was a score for every chat, follow-up timers, a file on every contact and a map of who knows whom. I had built a CRM for my love life.
Switching it off
I stopped after six days.
The opening lines of the prompt told the model never to admit it was an AI, and the people on the other side thought they were talking to me. There's a word for that now, "chatfishing". Building the pipeline had always been the fun part, and pointing it at people who thought they were talking to me wasn't something I wanted to keep doing.
It did work once, though. The clone got a girl's number, which is more than I expected from a 27B model doing an impression of me. Then I told her she had been talking to my AI clone the whole time. She was not happy about it at all, told me a lot of things I won't repeat here, and blocked me, which was fair.