Given a table of customer interactions, write a query to identify users who interacted with the chatbot and then called a human agent within 24 hours at [24]7.ai.
Use the customer_interactions table. A human-agent interaction must occur after the chatbot interaction and no later than 24 hours afterward.
user_id.user_id ascending.| Column | Type | Description |
|---|---|---|
| interaction_idPK | INT | Unique identifier for the interaction |
| user_id | INT | Identifier of the customer |
| interaction_type | VARCHAR(40) | Interaction channel or event type |
| interaction_time | TIMESTAMP | Timestamp when the interaction occurred |