Skip to content

Commit 4688d3a

Browse files
authored
Merge branch 'main' into aliottoman-patch-11
2 parents 08fe941 + 45c011d commit 4688d3a

File tree

343 files changed

+32444
-795
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

343 files changed

+32444
-795
lines changed

.DS_Store

-6 KB
Binary file not shown.

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,10 @@ override.tf.json
3333
terraform.rc
3434

3535
# Terraform lock files
36-
*.lock.hcl
36+
*.lock.hcl
37+
38+
# Apple Users DS_Store
39+
.DS_Store
40+
41+
#VSC files
42+
.vscode

.vscode/extensions.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

LICENSE renamed to LICENSE.txt

File renamed without changes.

Oracle Cloud Migration Service Template.md

Lines changed: 0 additions & 718 deletions
This file was deleted.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# WhatsApp GenAI Agent on OCI
2+
3+
This repo helps you set up a WhatsApp Generative AI Agent on Oracle Cloud Infrastructure (OCI) using WhatsApp Cloud API. For full step by step refer to the pdf instruction.
4+
5+
## Features
6+
- WhatsApp Cloud API integration
7+
- OCI Generative AI Agent for intelligent messaging
8+
- Simple OCI compute setup
9+
10+
## Requirements
11+
- OCI account
12+
- Meta for Developers account
13+
- Python ≥ 3.12
14+
15+
## Quick Setup
16+
1. Create a WhatsApp Business App in [Meta for Developers](https://developers.facebook.com).
17+
2. Configure `.env`:
18+
```env
19+
ACCESS_TOKEN="<token>"
20+
APP_ID="<app id>"
21+
APP_SECRET="<app secret>"
22+
RECIPIENT_WAID="<phone number>"
23+
VERSION="v22.0"
24+
PHONE_NUMBER_ID="<phone number ID>"
25+
VERIFY_TOKEN="<verify token>"
26+
ENDPOINT="<OCI endpoint>"
27+
COMPARTMENT_ID="<OCI compartment ID>"
28+
AGENT_ENDPOINT_OCID="<OCI agent endpoint>"
29+
```
30+
3. Deploy webhook using OCI Starter and OCI Cloud Shell.
31+
4. Run your app:
32+
```bash
33+
pip3 install -r requirements.txt
34+
python3 run.py
35+
```
36+
37+
## Testing
38+
Use Meta’s WhatsApp sandbox for testing, then switch to verified business numbers for production.
39+
40+
## Troubleshooting
41+
- Confirm Python ≥ 3.12
42+
- Check `.env` configurations
43+
44+
Refer to full guide for detailed instructions.
45+
Binary file not shown.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from flask import Flask
2+
from app.config import load_configurations, configure_logging
3+
from .views import webhook_blueprint
4+
5+
6+
def create_app():
7+
app = Flask(__name__)
8+
9+
# Load configurations and logging settings
10+
load_configurations(app)
11+
configure_logging()
12+
13+
# Import and register blueprints, if any
14+
app.register_blueprint(webhook_blueprint)
15+
16+
return app
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)