Lindy Community Icon

Creating an Agent to Generate Lead Magnets from Central Knowledge Document

Β·
Β·

Hi, has anyone been able to build an agent that can build/write out lead magnets based off of one one central knowledge document?

  • Avatar of Aayush M.
    Aayush M.
    Β·
    Β·

    can you expand? You've a knowledge base and you want to write create lead magnets from it?

  • Avatar of Abdul I.
    Abdul I.
    Β·
    Β·

    correct

  • Avatar of Aayush M.
    Aayush M.
    Β·
    Β·

    Is this central knowledge doc a markdown file / doc?

  • Avatar of Abdul I.
    Abdul I.
    Β·
    Β·

    yeah its a google doc about 70 pages long

  • Avatar of Aayush M.
    Aayush M.
    Β·
    Β·

    interesting / I doubt the agent will read 70 pages, because the AI models would hit token limits. Do you know the word count? In case it's hitting the token limits > What you should do is in your doc, if you've different overall themes for eg: first half talks about marketing, 2nd half talks about sales, divide the content that way. Then run an AI agent that would first scan and understand the context of the lead magnet and only pick snippets from the overall theme. So the flow would be like this: first, read the knowledge base, then an AI agent step will check for the context. Then there's a condition that will say something like, if the context is sales, another AI agent will have a prompt to create lead magnets. The other condition would be, if the overall theme is sales, then another AI agent step will have a prompt to create a lead magnet. That is how I think it will work if we are hitting the token limits.

  • Avatar of Djahlor (.
    Djahlor (.
    Β·
    Β·

    thats a really good solution

  • Avatar of Marvin A.
    Marvin A.
    Β·
    Β·

    I’d try gemini 2.5 pro and give it the full 70 pages to see what happens πŸ™‚ (without the KB)

  • Avatar of Aayush M.
    Aayush M.
    Β·
    Β·

    Try that / but IMO when we try and do RAG without proper sectionioning it ends up failing

  • Avatar of Aayush M.
    Aayush M.
    Β·
    Β·

    worth trying though