Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```