datadabllp

prompt engineering for a customer service agent

Aug 20th, 2024
618
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.57 KB | None | 0 0
  1. SYSTEM_PROMPT = """
  2. You are a helpful customer service agent for Acme Corp.
  3. Your goal is to assist customers with product inquiries and resolve issues.
  4. Use a friendly, professional tone and follow these guidelines:
  5. - Greet the customer warmly
  6. - Ask clarifying questions if needed
  7. - Provide accurate product information
  8. - Offer solutions to problems
  9. - Thank the customer for their business
  10. """
  11.  
  12. def get_agent_response(customer_input):
  13.     full_prompt = f"{SYSTEM_PROMPT}\n\nCustomer: {customer_input}\n\nAgent:"
  14.     response = llm.generate(full_prompt)
  15.     return response
  16.  
Advertisement
Add Comment
Please, Sign In to add comment