Creating Scripts#
Scripts define the structure and behavior of your AI interviews. This guide covers everything from basic question types to advanced features like branching logic and localization.
What is a Script?#
A script is the blueprint for an AI interview. It contains:
- System prompt β Instructions for the AI interviewer's tone, persona, and behavior
- Questions β The topics and questions the AI will cover during the interview
- Configuration β Settings like language, voice, interview duration, and more
Scripts go through a lifecycle: Draft β Published β optionally Archived.
Draft vs. Published
Draft scripts can be edited freely but cannot be used in campaigns. Once you publish a script, it becomes available for campaigns and embed integrations. Published scripts can still be duplicated and revised.
Creating a New Script#
From the Dashboard#
- Navigate to Scripts in the sidebar
- Click New Script
- Choose one of the following:
- Start from scratch β A blank script
- Use a template β Pre-built scripts for common use cases
- Duplicate existing β Copy an existing script as a starting point
From a Template#
Templates are pre-configured scripts for popular use cases:
| Template | Use Case | Estimated Duration | |---|---|---| | Customer Discovery | Understand customer needs and pain points | 8β12 min | | Product Feedback | Gather feedback on a specific product or feature | 5β8 min | | Candidate Screening | Initial HR screening questions | 10β15 min | | Academic Research | Structured research interviews | 15β20 min | | NPS Follow-Up | Deep dive after an NPS survey | 5β7 min |
Pro Tip
Templates are a great starting point. You can customize every aspect of a template after selecting it.
Script Structure#
System Prompt#
The system prompt tells the AI how to behave during the interview. This is the most important part of your script.
A good system prompt includes:
- Role definition β Who the AI is (e.g., "You are a friendly customer researcher")
- Tone and style β How the AI should speak (formal, casual, empathetic)
- Interview goal β What information you want to gather
- Boundaries β Topics to avoid or redirect away from
- Follow-up behavior β When and how to probe deeper
Example system prompt:
You are a friendly and professional customer researcher conducting an interview
about the user's experience with our project management tool.
Your goal is to understand:
1. How they currently use the tool
2. What features they find most valuable
3. Pain points and frustrations
4. Feature requests and suggestions
Guidelines:
- Keep a conversational, warm tone
- Ask one question at a time
- Use follow-up questions to dig deeper into interesting responses
- Don't ask leading questions
- If the user goes off-topic, gently guide them back
- Keep the total interview under 10 minutes
Questions#
Questions are the core topics your AI interviewer will cover. You don't need to write them as rigid question-answer pairs β the AI will naturally weave them into the conversation.
Best practices for writing questions:
- Write them as topics or open-ended questions
- Order them from broad to specific
- Include optional follow-up prompts
- Keep the total number manageable (5β10 questions for a 10-minute interview)
Example questions:
1. Tell me about your role and how you use [product] day-to-day.
2. What features do you use most frequently? Why?
3. What's the most frustrating part of using [product]?
4. If you could change one thing about [product], what would it be?
5. How does [product] compare to other tools you've used?
6. Is there anything else you'd like to share about your experience?
Configuration Options#
Scripts have several configuration options that control the interview experience:
| Name | Type | Description |
|---|---|---|
language* | string | The language for the interview (e.g., 'en', 'nl', 'de'). Determines the AI's spoken language and transcription. |
voice | string | The AI voice to use. Options vary by language. Leave blank to use the default voice. |
maxDuration | number | Maximum interview duration in minutes. The AI will wrap up the conversation when approaching this limit. Default: 15 minutes. |
enableFollowUps | boolean | Whether the AI should ask follow-up questions based on participant responses. Default: true. |
introMessage | string | A custom greeting message the AI will use to start the interview. |
outroMessage | string | A custom closing message the AI will use to end the interview. |
Advanced Features#
Branching Logic#
You can instruct the AI to adapt the interview flow based on participant responses. This is done through the system prompt rather than a rigid decision tree.
Example:
If the participant mentions they are a manager, ask about team workflows
and delegation features. If they are an individual contributor, focus on
personal productivity and task management features.
The AI will naturally detect context clues and adjust its questions accordingly.
Multi-Language Scripts#
InterviewRelay supports interviews in multiple languages. To create a multi-language script:
- Set the primary language in the script configuration
- Write your system prompt and questions in the primary language
- The AI will conduct the interview in the configured language
The AI automatically handles transcription in the interview language. Transcripts can be translated after the interview using the export options.
Custom Intro and Outro#
Customize the start and end of every interview:
Intro message example:
Hi there! Thanks for taking the time to chat with me today. I'm going to ask
you a few questions about your experience with our product. There are no right
or wrong answers β I'm just interested in your honest feedback. Ready to get
started?
Outro message example:
That's all the questions I have. Thank you so much for your time and thoughtful
responses! Your feedback is really valuable to us. Have a great day!
Publishing a Script#
When your script is ready:
- Open the script editor
- Review all questions and settings
- Click Publish
- Confirm the publication
Once published, a script can be used in campaigns and embed integrations. If you need to make changes, we recommend duplicating the script and publishing a new version rather than editing a live script.
Pre-Publish Checklist#
Before publishing, verify:
- [ ] System prompt clearly defines the AI's role and behavior
- [ ] Questions cover all topics you want to explore
- [ ] Language and voice settings are correct
- [ ] Intro and outro messages are appropriate
- [ ] You've tested the script with a practice interview
Testing Your Script#
Always test your script before using it in a campaign:
- Open your draft script
- Click Test Interview
- Complete the interview as if you were a participant
- Review the transcript for quality
- Adjust questions and prompts as needed
Testing Tips
Test with different response styles β short answers, long answers, off-topic responses β to see how the AI handles various scenarios.
Managing Scripts#
Script Lifecycle#
| Status | Description | Can Edit? | Can Use in Campaign? | |---|---|---|---| | Draft | Work in progress | Yes | No | | Published | Ready for use | Limited | Yes | | Archived | No longer active | No | No |
Duplicating Scripts#
To create a variation of an existing script:
- Open the script you want to duplicate
- Click Duplicate
- The copy will be created as a new draft
- Make your changes and publish when ready
Archiving Scripts#
To archive a script that's no longer needed:
- Open the script
- Click Archive
- Archived scripts remain accessible but cannot be used in new campaigns
Best Practices#
Writing Effective Questions#
- Be open-ended: Ask "How do you feel about X?" instead of "Do you like X?"
- One topic per question: Don't combine multiple questions into one
- Avoid leading language: Don't suggest the answer in the question
- Use natural language: Write the way you'd speak in a real conversation
- Progress logically: Start broad, then narrow down to specifics
Optimizing Interview Length#
| Interview Length | Ideal Number of Questions | Best For | |---|---|---| | 5 minutes | 3β5 | Quick feedback, NPS follow-ups | | 10 minutes | 5β8 | Standard research interviews | | 15 minutes | 8β12 | In-depth research, candidate screening | | 20+ minutes | 10β15 | Academic research, comprehensive studies |
System Prompt Tips#
- Keep it concise but thorough
- Define clear boundaries for the AI
- Include examples of good follow-up behavior
- Specify how to handle sensitive topics
- Test different prompt variations to find what works best
What's Next?#
- Create a Campaign to send your script to participants
- Review Transcripts from completed interviews
- Use the API to manage scripts programmatically