PDF Generator (Modified)

Has anyone cloned and modified the PDF Generator and altered the variables according to the chatbot use case?

PDF won’t generate. I keep getting the same error with each test.

I followed along with the PA Team Tutorial on YT: https://www.youtube.com/watch?v=wQKbL0kLbAk&t=321s

I removed “PDF_HTML” and input the function inputs instead > updated the prompt to direct the chatbot to generate a PDF after it finishes generating the output for the user.

I used OpenAI Playground 4o-mini to get the code.

Anyone having similar issues? Anny fixes?

Tnx,
Ned

1 Like

@ned_rvth yes had some issues as well. As I want more flexibility on how the pdf’s are displayed and being able to quickly change the format, I have used Make in this case too (sorry I know I repeat myself)!

1 Like

Make is a powerful connective tool :boom:

@nathaniel @nathanielmhld check this out

1 Like

I get this message at the end of each output:

Does the chosen output LLM make a difference. i.e. GPT 4 vs. Claude Sonnet 3.5?

This seems to be an LLM issue. Depending on how you’ve prompted them, they can be quite adamant.

There is indeed differences between LLMs. Claude and GPT can behave differently. For example, I’ve noticed that when I connect a DALL-E action, Claude can be quite resistant to the idea that it can use DALL-E. Fortunately, you can always fix this issues with prompting.

I would revisit the prompt and explain very clearly that it can generate PDFs and how it should be done.

1 Like

That makes sense.

I will try reinforcing the action prompt in the chat bot prompt section and update the thread after.

1 Like

let me know if it doesnt work still!

1 Like

I managed to resolve the issues. There was no need for a Make integration. I switched from going back and forth with Claud 3.5 (using a dedicated project) to using OpenAI playground with the latest version of GPT 4o. I rewrote and organized both the code and the prompt, and I even added user input to personalize the PDF output.

Notes and Tips:

*Claude seems to be stubborn or even clueless on how to work with wrapped GPTs. Use OpenAI’s playground OR ChatGPT 4o on a Plus subscription to diagnose issues within a third of the time.

  • Click “Format as JSON’ to view the code and make edits”
    image

  • Change the original XML pdf format over to:


    “fpdf” and update the code with the help of GPT 4o.

Pay attention to indentation in your code as it could cause errors.

2 Likes