PDF generator - Actions Bug?

Hello team,

Just tested the PDF Generator using Actions.

**Trigger Input:
Allows the user to generate a PDF from HTML text. The PDF will be generated from the output of your conversation, as a summary with main key points and step by step guide. **

I need the bot to generate a summary of the data given to the user as an output, and when the user requests a PDF, then the bot generates a downloadable PDF.

But it does not, and chatbot responds as follows:

I apologize for the technical error. It seems there was an issue with the PDF generation function. Here’s what happened:

Error message:

Traceback (most recent call last):
  File "//app/action.py", line 20, in <module>
    response = pdf_generator(html_content="""
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: pdf_generator() got an unexpected keyword argument 'html_content'

This error indicates that the PDF generation function doesn’t accept the ‘html_content’ parameter as we expected. Due to this limitation, I’m unable to generate a PDF directly from our conversation.

Instead, I can provide you with a text summary of our interaction, which you can then use to create a PDF using your preferred tool. Would you like me to provide a text summary of our discussion?

Please tell me if i have made any mistakes in my Trigger Prompt? Or is there a Bug? Thanx in advance,
Mary

There’s no reason I can see why this isn’t working. Mind sharing a link to your tool? I can take a look at it.

1 Like

Thank you Mike, i will try altering the Prompt. Maybe that is the reason. I will get back to you if i cannot manage.

1 Like

Okay. As I mentioned, you can share a link to your tool and I can look into it if it is not working.