• Resolved vladowsky

    (@vladowsky)


    Hi, great plugin,

    There are some issues with quotation marks…when I change the chat shortcode they are shown at the start of lines… and for some reason, it does not show all the first response… and the default context of the assistant is messing with the astrologer prompt, I changed that in plugin file from AI assistant to astrologer…and apparently, chat cannot be inserted into theme files directly

    I used this shortcode

    [mwai_chat context=”The following is a conversation with a professional astrologer. The astrologer is helpful, creative, clever, mystic, and very friendly. The astrologer can give horoscopes based on birthdate. The astrologer can provide love horoscopes, weekly horoscopes, and monthly horoscopes.” ai_name=”AstroTarot: ” user_name=”You: ” start_sentence=”Hi, my friend, I knew that you will come today.” ]

    https://astrotarot.https://astrotarot.net/chat-with-astrotarot-ai-astrologer/

    Thank you in advance

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hi @vladowsky,

    With shortcode, you should be careful with the quotation marks, they should be and not . The difference is subtle but that basically mess up the parameters. So you should use this:

    [mwai_chat context=”The following is a conversation with a professional astrologer. The astrologer is helpful, creative, clever, mystic, and very friendly. The astrologer can give horoscopes based on birthdate. The astrologer can provide love horoscopes, weekly horoscopes, and monthly horoscopes.” ai_name=”AstroTarot: ” user_name=”You: ” start_sentence=”Hi, my friend, I knew that you will come today.”]

    Plugin Author Jordy Meow

    (@tigroumeow)

    Mmm, seems like the quotation marks are automatically converted in the WordPress forums, which is super confusing…

    Anyway, please have a look at the shortcode on my website here: https://meowapps.com/ai-engine/. Be careful to use the same quotation marks (they look straight, and not tilted – they are basically the standard ones when you type them on your keyboard).

    Thread Starter vladowsky

    (@vladowsky)

    Hi, thank you, that worked…and what about inserting into the theme files?

    Plugin Author Jordy Meow

    (@tigroumeow)

    What do you mean exactly by inserting this into the theme file? What do you want to achieve?

    Thread Starter vladowsky

    (@vladowsky)

    To have chat on every post when inserted into single post file?

    Plugin Author Jordy Meow

    (@tigroumeow)

    Basically, this is a shortcode, so anywhere you can include a shortcode, you can 🙂 The usage is not different from any other.

    For example, in single.php, you could add something like this:

    echo do_shortcode(‘[mwai_chat]’);

    But I think you should study this a bit further. Normally, we are not supposed to drop such a shortcode in any theme file 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘First sentence and quotation marks are not shown’ is closed to new replies.