slack-samples / bolt-python-ai-chatbot

Bring AI into your workspace using a chatbot powered by Anthropic and OpenAI
MIT License
9 stars 2 forks source link

Initial submission #1

Closed srtaalej closed 1 month ago

srtaalej commented 1 month ago

Type of change (place an x in the [ ] that applies)

Summary

This PR introduces a new sample app that uses OpenAI and Anthropic APIs to generate responses to user prompts. The app showcases various interaction methods including DMs, app mentions, and a custom /ask command, while also supporting Bring Your Own Bot (BYOB) functionality and custom function implementation.

Requirements (place an x in each [ ] that applies)

srtaalej commented 1 month ago

@hello-ashleyintech

when trying to run the slash command or dm bolty, I keep getting the following error: missing 1 required positional argument: 'msg' 😢 do you know what could be causing this?

Did it create a user file for you? It usually means it cant find your provider selection.

srtaalej commented 1 month ago

mentioning the bot results in the following error: ERROR:app.py:app_mentioned_callback:parse_conversation() takes 1 positional argument but 2 were given

i removed bot_id from the parameters for parse_conversation(). my bad, i missed that!

hello-ashleyintech commented 1 month ago

Did it create a user file for you? It usually means it cant find your provider selection.

It did! 😲 maybe it's having trouble reading it?

hello-ashleyintech commented 1 month ago

unblocked on my end - errors were being thrown because i didn't have credits on my account 😢 got some working API keys for each service and it's working now, will test more tomorrow and leave an updated review ❤️