Update app.py
Browse files
app.py
CHANGED
|
@@ -120,7 +120,7 @@ def create_salesforce_record(query, answer, confidence_percentage, source_link):
|
|
| 120 |
}
|
| 121 |
|
| 122 |
# Creating the record in Salesforce
|
| 123 |
-
response = sf.
|
| 124 |
|
| 125 |
# Check if record was created successfully
|
| 126 |
if 'id' in response: # If the response contains an 'id', the record is created successfully
|
|
|
|
| 120 |
}
|
| 121 |
|
| 122 |
# Creating the record in Salesforce
|
| 123 |
+
response = sf.chat_query_log.create(data)
|
| 124 |
|
| 125 |
# Check if record was created successfully
|
| 126 |
if 'id' in response: # If the response contains an 'id', the record is created successfully
|