Latest / AI Fire Daily / #93 Max: Automating Investment Research with Perplexity Finance – An AI Analyst's Guide
Transcript
- 0:00Welcome to the Deep Dive. We're here to pull
- 0:02out the key bits of knowledge so you can get
- 0:03up to speed fast. Today we're looking at something,
- 0:06well, really transformative, I think. You know
- 0:09that AI agent you used, the text -based one?
- 0:11Super smart, super helpful. Well, what if he
- 0:13can actually talk back to you? Yeah, not like,
- 0:15you know, an old GPS voice. Exactly. Not clunky
- 0:18or robotic, but like, with a natural, engaging
- 0:21voice. A real personality. Something that sounds,
- 0:24well, human. And the thing is, It's something
- 0:31you can genuinely build today, like right now,
- 0:34and without writing code. That's the amazing
- 0:37part, the accessibility. Right. So our mission
- 0:40for this deep dive is... So, OK, let's kick things
- 1:00off. Method one. We're calling it the AI voicemail
- 1:03system expert. This sounds well, it sounds clever,
- 1:08like a smart way to handle tasks that aren't
- 1:10instant. Right. This asynchronous idea. Exactly.
- 1:13Yeah. Think of it like a super intelligent. Voice
- 1:18mailbox. You, the user, leave a voice message,
- 1:21maybe a complex question or instruction. And
- 1:23the AI doesn't rush. It takes its time. It listens.
- 1:27It thinks, processes everything, and then responds
- 1:29with its own audio message back to you. Oh, OK.
- 1:31So this asynchronous thing, it's perfect for
- 1:34jobs that need, you know, deeper thought, summarizing
- 1:36a really long document maybe or doing some complex
- 1:39research. Right. Not that instant back and forth,
- 1:41but more considered. Precisely. It's about getting
- 1:43a thoughtful, rich response when you don't need
- 1:46it that very second. That makes a lot of sense.
- 1:48Like having a research assistant, you can brief
- 1:50and they come back later with the findings. So,
- 1:52OK, what's the actual journey from me hitting
- 1:54record to the AI talking back? Walk us through
- 1:57this voice message pipeline. Yeah, it's quite
- 1:59an elegant flow, actually, like a little assembly
- 2:01line. It starts when you send a voice message.
- 2:04Let's say you send it to a telegram bot. Then
- 2:07N8N, acting as the orchestrator, grabs that audio
- 2:11file. downloads it, that raw audio, it goes straight
- 2:15to 11 Labs, their models transcribe it, turn
- 2:17it into text, and they do it brilliantly. That
- 2:20text then gets fed to the AI brain. Could be
- 2:23ChatGPT, could be Claude, whatever you're using.
- 2:25The AI does its thing, generates the response
- 2:28in text, and that text goes back to 11 Labs,
- 2:31this time for text -to -speech, turning it into
- 2:33that natural -sounding audio. And then finally,
- 2:36N8N takes that new audio file and sends it back
- 2:39to you in Telegram. It's a full circle. Wow.
- 2:41Okay. Okay, that sounds incredibly capable. And
- 2:43the bit that really grabs me is the no -code
- 2:45part you mentioned. Like, for someone wanting
- 2:47to build this, what are the actual pieces, the
- 2:49Lego bricks in N8N? How do they, you know, snap
- 2:52together? Right, yeah, Lego bricks is a great
- 2:54way to put it. They really do feel like they're
- 2:56made for each other. You're listening to Ghost.
- 2:59In any in -the -ghosted area, like the Telegram
- 3:02turn -out, you set it up to catch incoming audio
- 3:04files, specifically the voice message format.
- 3:07And crucially, it grabs the chatted... The return
- 3:10address. Exactly. It's the unique return address,
- 3:13so the AI knows where to send its response back.
- 3:15Next trick. The universal translator. That's
- 3:19an 11 labs node doing the speech -to -text...
- 3:22It takes the audio file and just grabs and transcribes
- 3:25it. The beauty is NAN handles passing that audio
- 3:28data automatically. It's pretty seamless. Okay,
- 3:31no complex mapping needed there. Nope. And it
- 3:56totally changes the whole feel of the interaction.
- 3:59So the system prompt is really the soul of the
- 4:02agent. OK, then what? How does it get its voice
- 4:04back? Right. So after the AI thinks and writes
- 4:07its text response, you use another 11 Labs node.
- 4:10This one's for text to speech. You connect the
- 4:13AI's text output to this node. And this is where
- 4:16you like. Cast your agent. You choose a voice
- 4:18from Eleven Labs library. They have tons. Or
- 4:21you can use a specific voice ID if you've cloned
- 4:23one or have a favorite. Got it. Choosing the
- 4:25voice actor. Pretty much. And the final step,
- 4:28delivering the message. That's another telegram
- 4:31node, a sender this time. You make sure it sends
- 4:33the audio file generated by Eleven Labs back
- 4:36to the original chat aid so the message goes
- 4:38right back to the person who sent the request.
- 4:39And then the test flight. The moment of truth,
- 4:43as you called it. I bet it's satisfying seeing
- 4:45it all light up. Oh, it really is. Watching each
- 4:47node activate on the inning and canvas as your
- 4:49message flows through. Very cool. But, you know,
- 4:52things don't always work first time. What about
- 4:54when, Houston, we have a problem? Any quick debugging
- 4:59tips? Yeah, absolutely. The bugging and editing
- 5:01is usually pretty straightforward. The visual
- 5:03flow helps a lot. If a node doesn't light up
- 5:06green, you know exactly where it's stopped. First
- 5:08thing, check the trigger. Does the Telegram node
- 5:11even receive the message? If not, maybe check
- 5:13your WhatsApp and Telegram as well. Then follow
- 5:16the noodles, those lines connecting the nodes.
- 5:18Is everything connected? Did you link an output
- 5:21to the right input? Easy mistake to make. But
- 5:24honestly, the most common failure point nine
- 5:26times out of ten is probably credentials. Ah,
- 5:30yes, the classic. Triple check them. Your 11
- 5:33labs key, your AI service key, one typo and the
- 5:36whole thing falls over. And maybe most importantly,
- 5:39read the error message. That's really solid advice.
- 5:47OK, so this AI voicemail bot is fantastic for
- 5:52those deeper asynchronous things. But what if
- 5:55you want that instant back and forth, the conversational
- 5:58feel? This is where it gets really interesting,
- 6:00I think. We're talking about building a fluid,
- 6:04real -time conversational AI, like talking to
- 6:08a human assistant on the phone. This sounds like
- 6:10the main event, the showstopper. Yeah, this is
- 6:12where it feels truly interactive. So how do we
- 6:15achieve that, the proper AI assistant experience?
- 6:18Okay, so for this real -time system. you need
- 6:21a totally different setup, a different kind of
- 6:23partnership. I like to think of it using the
- 6:25NASA mission control analogy. Ooh, okay. Tell
- 6:28me more. Right. In this model, 11 Labs is mission
- 6:30control. It's the sophisticated front end. It
- 6:32handles the direct chat with the user, the voice,
- 6:34the personality, managing the flow of the conversation.
- 6:37It's talking to the astronaut, basically. Got
- 6:39it. The voice on the comms. Exactly. Now, your
- 6:42NA workflow, that's the specialist team back
- 6:44in Houston. The engineers, the scientists, they
- 6:47don't talk directly to the user. Instead, they
- 6:50are a powerful tool that Mission Control 11 Labs
- 6:53calls upon when the user asks something complex.
- 6:57thing needing research or a specific action performed.
- 7:00Ah, I see. So Eleven Labs handles the chat and
- 7:03ANN does the heavy lifting in the background
- 7:05when needed. Precisely. That's the key takeaway.
- 7:08Eleven Labs manages the conversation and ANN
- 7:11handles the actions or the deep information retrieval.
- 7:14That analogy makes it crystal clear. So if 11
- 7:18Labs is mission control, how do we actually build
- 7:20it? How do we set up our agent in 11 Labs for
- 7:23these live calls? You actually do it right inside
- 7:25your 11 Labs account. They have a section called
- 7:27Conversational AI. You go there, create a new
- 7:29agent, and this is where you play casting director
- 7:31again. Give it a name, something fitting. Choose
- 7:33a voice from their library that matches the personality
- 7:36you want. calm and professional, energetic and
- 7:39friendly. And then you craft that initial greeting,
- 7:42something simple to start, like, hello, how can
- 7:44I help you today? Okay, straightforward enough.
- 7:46But how do we connect mission control to the
- 7:50specialist team, to NAN? That feels like the
- 7:52critical link. It absolutely is. So back in your
- 7:5511 Labs agent settings, you scroll down to tools.
- 7:58Here, you add a custom webhook tool. This is
- 8:01literally the direct phone line to your NAN workflow.
- 8:04Okay. You need to give the AI a clear briefing
- 8:06about this tool. So you give it a name, like
- 8:08NAN Web Researcher, and a description, something
- 8:11really clear like, call this tool to search the
- 8:13web and find information about any topic. It
- 8:16is an expert research assistant. So the AI knows
- 8:19what it's for. Exactly. You set the method to
- 8:21post and then you paste in the URL from an NAN
- 8:24webhook node that connects them. Got it. So the
- 8:27agent knows what the specialist team does, but
- 8:30it also needs to know when to call them, right?
- 8:31Yeah. That brings us to the prime directive,
- 8:34the system prompt for the 11Labs agent itself.
- 8:37How do we teach it to... Essentially, put the
- 8:40user on hold and call the NAN tool at the right
- 8:43moment. Yeah, this prompt is, it's like the agent's
- 8:45constitution. It dictates everything. 11 Labs
- 8:48has a nice generate with AI feature to get you
- 8:50started with a base prompt. But you must manually
- 8:53add a really crucial instruction. You have to
- 8:56explicitly tell the agent. When the user asks
- 9:00a question that requires up -to -date information
- 9:02or web research, use the N8 Web Researcher tool.
- 9:05Tell the user you are searching and then wait
- 9:08for the tool's response before continuing. Ah,
- 9:11okay, so it's a non -negotiable rule. Absolutely.
- 9:14Without that specific instruction, the agent
- 9:16might just try to answer from its general knowledge,
- 9:19which could be outdated, or it might just get
- 9:20confused about how to use the tool. This tells
- 9:23it exactly how to handle research requests. That's
- 9:25a really important detail. Okay, and what about
- 9:28building the specialist team itself, the NANN
- 9:31workflow that receives the call from 11 labs?
- 9:34What are the key parts there? So the NANN research
- 9:36backend is pretty focused. It usually has three
- 9:39main parts. First, the researcher. The webhook
- 9:42node receives the query from 11 labs. You pass
- 9:45that query straight to, say, a perplexity node.
- 9:49You'd probably use one of their sonar models.
- 9:51They're designed for real -time web search, pulling
- 9:52back sourced info. Okay, so it gets the raw data.
- 9:55Right. But that raw data can be a lot. Maybe
- 9:59too much for a quick conversational answer. So
- 10:02next comes the editor. You pass Perplexity's
- 10:05output to another AI agent node, its only job,
- 10:08to be a ruthless editor. You give it a sign prompt
- 10:11like, summarize the following information concisely,
- 10:14no more than three sentences. Nice. Keep it brief.
- 10:17Exactly. And finally, the report back. This is
- 10:21just a respond to webhook node in ANN. It takes
- 10:24that short, concise summary from the editor AI
- 10:26and sends it straight back to the 11 labs agent
- 10:28waiting on the line. Loop closed. This sounds
- 10:31seriously powerful when put together. Let's make
- 10:34it real. Can you walk us through a quick test
- 10:36flight, a hypothetical conversation so we can
- 10:38hear how it flows? Yeah, sure. Imagine you call
- 10:41your agent. You could be using your browser,
- 10:43your phone. You start. Hello, I'd like to do
- 10:45some research on the company NVIDIA. The agent,
- 10:4811 Labs, responds smoothly using the voice you
- 10:50chose. I can certainly help with that. Is there
- 10:52anything specific you'd like to know about NVIDIA?
- 10:54Okay, nice and natural. Then you say. Yeah, let's
- 10:57look at their Q4 2025 forecast. Now, the agent
- 11:01recognizes this needs the specialist tool because
- 11:04of that prompt rule. So it says, understood.
- 11:07I'll search for NVIDIA's Q4 2025 forecast now.
- 11:10Please give me just a moment. Ah, putting you
- 11:12on hold politely. Exactly. And behind the scenes,
- 11:15bam, the N8N workflow fires up. Perplexity searches,
- 11:20the AI summarizes. The specialist team is working.
- 11:22Right. Then maybe five, 10 seconds later, the
- 11:2511 labs agent comes back. Okay. I have found
- 11:28some information on NVIDIA's quarter four 2025
- 11:31forecast. NVIDIA reported revenue of whatever
- 11:36the summary is. Wow. It's a seamless conversation,
- 11:39even with that complex lookup happening in the
- 11:41background. That's genuinely impressive. It completely
- 11:43changes the game for AI interaction. So thinking
- 11:46bigger. What does this mean for expanding? You
- 11:49mentioned a pro -level upgrade, the multi -specialist
- 11:51idea. Yeah, this is where it gets really powerful.
- 11:52You're not limited to just one NANA specialist
- 11:54tool. You can create multiple NAN workflows,
- 11:57each starting with a webhook, each designed for
- 11:59a different task. Like what? Well, you could
- 12:01have your web researcher, but also maybe an internal
- 12:04database checker that looks at customer info.
- 12:07or a calendar scheduler, or even one that sends
- 12:10emails. Okay. You add each of these as separate
- 12:13webhook tools in the 11 Labs agent settings,
- 12:15each with a clear name and description. Then
- 12:18your 11 Labs agent, Mission Control, becomes
- 12:21much smarter. Based on your conversation, it
- 12:24will figure out which specialist tool is the
- 12:26right one to call for that specific task. So
- 12:28it routes the request intelligently. Exactly.
- 12:30It transforms your agent from just a researcher
- 12:33into a truly versatile assistant. That's incredible,
- 12:36giving the AI a whole team. Okay, so for people
- 12:39wanting to actually deploy this, move beyond
- 12:41just... Also, consider rate limiting on your
- 13:03webhook to prevent accidental or intentional
- 13:05overload. And keep a close eye on your API usage
- 13:0911 labs, your AI model provider perplexity. Those
- 13:13costs can add up if you're not monitoring them.
- 13:15And technically, remember to switch your NAN
- 13:18workflow from the test URL to the production
- 13:20URL. Just remove the test part and make sure
- 13:23the workflow toggle is set to active. Little
- 13:25details, but crucial. Okay, beyond the text setup.
- 13:29There's the experience itself, crafting the perfect
- 13:32conversational experience. This sounds like an
- 13:34art. Any tips on voice selection, keeping the
- 13:37flow smooth? It absolutely is an art. For voice
- 13:40selection, really think about the agent's role.
- 13:42Is it a formal research assistant? Maybe a clear,
- 13:45neutral voice? A creative brainstorming partner?
- 13:47Perhaps something more expressive? And definitely
- 13:49test voices with real content, not just, hello,
- 13:52a voice that sounds great for one sentence might
- 13:55get grading over a longer explanation. For conversation
- 13:58flow, keep the agent's responses conversational
- 14:00but also concise. Aim for maybe two or three
- 14:03sentences for simple answers. Don't let it ramble.
- 14:06And crucially, plan for errors. What happens
- 14:10if the NAN workflow times out or fails? The agent
- 14:14shouldn't just hang up. It needs a graceful exit,
- 14:16like, I'm sorry, I seem to be having trouble
- 14:18connecting to my research tool right now. Could
- 14:20you try again in a moment? Handling failures
- 14:22gracefully, yeah, that's key for a professional
- 14:24field. And this brings us back to the prompt,
- 14:26really. How do you ensure it behaves consistently?
- 14:29That's advanced prompt engineering for voice.
- 14:33The system prompt for your 11 Labs agent is its
- 14:35constitution. It needs explicit rules. Define
- 14:38the persona clearly. Set rules for conversation
- 14:41management, like always ask clarifying questions
- 14:43if a request is vague, keep information concise,
- 14:46use natural language. And most importantly for
- 14:48this setup, explicit tool usage guidelines. Define
- 14:52exactly when to use each N8N tool, how to introduce
- 14:55it, and what to tell the user if a tool fails
- 14:57or takes too long. It sounds like the prompt
- 14:59is doing a lot of heavy lifting in managing the
- 15:00whole interaction. It really is. It's the brain
- 15:03governing the conversation flow and tool orchestration.
- 15:06So this blueprint, it really unlocks some serious
- 15:09superpowers. These advanced voice agent patterns.
- 15:12We're talking multi -tool agents doing research,
- 15:15scheduling, emailing. Checking databases, analyzing
- 15:18sales data. Yeah. And context -aware conversations.
- 15:22Yeah. Connecting to memory systems like ZEP or
- 15:24Supabase so it remembers past chats. Exactly.
- 15:27So you can pick up where you left off or it can
- 15:29build knowledge over time. Makes it feel much
- 15:31more intelligent. And then my favorite, Star
- 15:34Trek mode. Voice -activated workflows. Using
- 15:38the voice agent as, like, a master controller
- 15:41for other inane automations. Precisely. Imagine
- 15:44just saying, computer, run the morning sales
- 15:46report automation. Oh, man. For anyone who's
- 15:48manually pulled reports every morning, that sounds
- 15:50like pure magic. Have you actually seen teams
- 15:52implement that kind of thing? Does this save
- 15:54a lot of time? Oh, absolutely. E -efficiency
- 15:56gains can be huge, especially for repetitive
- 15:58tasks that can be triggered by a simple voice
- 16:00command. It frees people up for more complex
- 16:03work. And the agent talks too much, doesn't know
- 16:39when to stop. That's almost always a prompt engineering
- 16:41issue. You need to go back to that system prompt
- 16:43and add stricter rules. Also, sales and lead
- 17:12qualification. An AI voice agent can handle initial
- 17:15outreach, answer basic questions, qualify leads,
- 17:19and then pass the really warm ones over to a
- 17:21human salesperson. Very efficient. And internally,
- 17:25think voice -controlled tools for teams, allowing
- 17:28people to query databases, run reports, or trigger
- 17:31workflows completely hands -free while they're
- 17:33doing other things. The possibilities really
- 17:35do seem vast. Yeah. Okay, let's try and bring
- 17:38this all together. The bottom line seems pretty
- 17:40clear. The future is conversational. And think
- 17:42about it. A few years back, the idea that a solo
- 17:45creator, maybe even just you listening now, could
- 17:48build an AI agent that holds a natural real -time
- 17:50voice chat, hooks into the Internet, performs
- 17:52tasks, that was pure sci -fi. Absolutely. Star
- 17:55Trek stuff. Right. And today. It's just another
- 17:58project you can build in AAN. You literally have
- 18:00the blueprint now to create AI systems that don't
- 18:02just crunch data, but actually engage, interact,
- 18:05connect on a much more human level. It democratizes
- 18:08some seriously advanced capabilities. Totally.
- 18:10So here's your mission briefing, your takeaway
- 18:13challenge, how you use this blueprint. Are you
- 18:15going to cast your character? Maybe a witty,
- 18:18sarcastic J -A -R -V -I -S like Iron Man's AI?
- 18:22Or perhaps a calm, professional, endlessly patient
- 18:26Star Trek computer voice. The personality is
- 18:29half the fun. It really is. And think, what specific
- 18:33nagging, recurring... problem in your life, your
- 18:38work, your business could be totally transformed
- 18:40by adding a voice. By batting one of these agents,
- 18:43imagine connecting it to your smart home, your
- 18:44office, literally saying, hey Jarvis, or whatever
- 18:47you call it, turn on the lights in the studio
- 18:49and start the coffee machine. The tech is there.
- 18:51It's ready. It really is. It's just waiting for
- 18:53your creativity. Time to get building. We really
- 18:55hope this deep dive has sparked some ideas, maybe
- 18:58given you some surprising insights. Keep exploring,
- 19:00keep building, and we'll see you on the next
- 19:02deep dive.