Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mukulmantosh/go-lambda
Developing Slack Bot using Golang, OpenAI & AWS
https://github.com/mukulmantosh/go-lambda
aws chatgpt go golang openai s3 slack slack-bot
Last synced: 13 days ago
JSON representation
Developing Slack Bot using Golang, OpenAI & AWS
- Host: GitHub
- URL: https://github.com/mukulmantosh/go-lambda
- Owner: mukulmantosh
- Created: 2023-07-26T15:58:41.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-07-28T15:05:32.000Z (over 1 year ago)
- Last Synced: 2024-12-24T07:49:04.550Z (22 days ago)
- Topics: aws, chatgpt, go, golang, openai, s3, slack, slack-bot
- Language: Go
- Homepage:
- Size: 1.14 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SlackBot with Go & OpenAI
![background](./misc/background.png)
## Dependencies
Install the below packages
```bash
$ go get github.com/sashabaranov/go-openai
$ go get github.com/aws/aws-sdk-go
$ go get -u github.com/slack-go/slack
```### Building Docker Image
```
$ docker build -t go-lambda:latest .
```### Deploying Image
Follow the instructions provided over here https://docs.aws.amazon.com/lambda/latest/dg/go-image.html
### Creating Function```bash
aws lambda create-function --function-name --package-type Image --code --role
```### Updating Function
```bash
aws lambda update-function-code --function-name --image-uri
```